silence Jekyll output
This commit is contained in:
parent
8a3cd3f9e3
commit
6eaae965f8
|
@ -7,6 +7,10 @@ RSpec.describe Jekyll::SeoTag::Drop do
|
|||
let(:text) { "" }
|
||||
subject { described_class.new(text, context) }
|
||||
|
||||
before do
|
||||
Jekyll.logger.log_level = :error
|
||||
end
|
||||
|
||||
# Drop includes liquid filters which expect arguments
|
||||
# By default, in drops, `to_h` will call each public method with no arugments
|
||||
# Here, that would cause the filters to explode. This test ensures that all
|
||||
|
|
|
@ -4,6 +4,10 @@ RSpec.describe Jekyll::SeoTag::Filters do
|
|||
let(:context) { make_context(:page => page, :site => site) }
|
||||
subject { described_class.new(context) }
|
||||
|
||||
before do
|
||||
Jekyll.logger.log_level = :error
|
||||
end
|
||||
|
||||
it "stores the context" do
|
||||
expect(subject.instance_variable_get("@context")).to be_a(Liquid::Context)
|
||||
end
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
RSpec.describe Jekyll::SeoTag::JSONLD do
|
||||
before do
|
||||
Jekyll.logger.log_level = :error
|
||||
end
|
||||
|
||||
let(:metadata) do
|
||||
{
|
||||
"title" => "title",
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
require "spec_helper"
|
||||
|
||||
describe Jekyll::SeoTag do
|
||||
RSpec.describe Jekyll::SeoTag do
|
||||
let(:page) { make_page }
|
||||
let(:site) { make_site }
|
||||
let(:post) { make_post }
|
||||
|
|
Loading…
Reference in New Issue