spec/lib/jekyll/assets_plugin/environment_spec.rb in jekyll-assets-0.7.7 vs spec/lib/jekyll/assets_plugin/environment_spec.rb in jekyll-assets-0.7.8

- old
+ new

@@ -1,20 +1,22 @@ require "spec_helper" -module Jekyll::AssetsPlugin - describe Environment do - context "#asset_path of context" do - it "should properly handle query params" do - css = @site.assets["vapor.css"].to_s - css.should match(/fonts\/vapor-[a-f0-9]{32}\.eot\?#iefix/) - css.should match(/fonts\/vapor-[a-f0-9]{32}\.svg#iefix/) - end +module Jekyll + module AssetsPlugin + describe Environment do + context "#asset_path of context" do + it "should properly handle query params" do + css = @site.assets["vapor.css"].to_s + css.should match(/fonts\/vapor-[a-f0-9]{32}\.eot\?#iefix/) + css.should match(/fonts\/vapor-[a-f0-9]{32}\.svg#iefix/) + end - it "should properly handle relative paths" do - css = @site.assets["lib/relative.css"].to_s - css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.eot\?#iefix} - css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.svg#iefix} - puts css + it "should properly handle relative paths" do + css = @site.assets["lib/relative.css"].to_s + css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.eot\?#iefix} + css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.svg#iefix} + puts css + end end end end end