Skip to content

Commit

Permalink
add tests for defaults_for_env
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Jul 20, 2017
1 parent 2339417 commit 5e056cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/github-pages/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
let(:configuration) { Jekyll.configuration(test_config) }
let(:site) { Jekyll::Site.new(configuration) }
let(:effective_config) { described_class.effective_config(site.config) }
let(:defaults_for_env) { described_class.defaults_for_env }

before(:each) do
ENV.delete("DISABLE_WHITELIST")
ENV["JEKYLL_ENV"] = "test"
Expand Down Expand Up @@ -61,6 +63,7 @@

it "doesn't compress sass" do
expect(effective_config["sass"]).to be_nil
expect(defaults_for_env["sass"]).to be_nil
end
end
end
Expand Down Expand Up @@ -170,6 +173,7 @@

it "compresses sass" do
expect(effective_config["sass"]).to eql("style" => "compressed")
expect(defaults_for_env["sass"]).to eql("style" => "compressed")
end
end
end
Expand Down

0 comments on commit 5e056cf

Please sign in to comment.