Permalink
Browse files

add some basic configuration test

  • Loading branch information...
1 parent 5ce9bb1 commit 1781a0b23b63673e5394e4bb887b23a9783e49dc @beanieboi beanieboi committed Feb 25, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 spec/lib/jekyll/assets_plugin/configuration_spec.rb
@@ -35,6 +35,12 @@ module Jekyll::AssetsPlugin
subject { config.compress.css }
it { should be_nil }
end
+
+ context "gzip" do
+ subject { config.gzip }
+ it { should == true }
+ end
+
end
it "should override specified options and leave defaults for missing" do
@@ -91,5 +97,13 @@ module Jekyll::AssetsPlugin
it { should be_false }
end
end
+
+ context "#gzip" do
+ context "when gzip is disabled" do
+ let(:config){ Configuration.new(:gzip => false) }
+ subject { config.gzip }
+ it { should be false }
+ end
+ end
end
end

0 comments on commit 1781a0b

Please sign in to comment.