silence Jekyll output

This commit is contained in:
Ben Balter 2017-04-08 14:29:24 -04:00
parent 8a3cd3f9e3
commit 6eaae965f8
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
4 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,8 @@
RSpec.describe Jekyll::SeoTag::JSONLD do
before do
Jekyll.logger.log_level = :error
end
let(:metadata) do
{
"title" => "title",

View File

@ -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 }