Sha256: 1d305bba568227a6886dfd84cc5abdba3e63693e6974ffa070996e5cc49263a9
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require "spec_helper" describe "Helpers:" do include StaticMatic::Helpers::AssetsHelper include StaticMatic::Helpers::CurrentPathHelper include StaticMatic::Helpers::TagHelper before do setup_staticmatic end context "When using the stylesheet helper" do before do @links = stylesheets end it "should set up links for all stylesheets" do @links.should match(/stylesheets\/application\.css/) @links.should match(/stylesheets\/nested\/a_nested_stylesheet\.css/) @links.should match(/stylesheets\/sassy\.css/) end it "should not link to partials" do @links.should_not match(/\_forms.css/) end it "should setup links for specified stylesheets" do stylesheets(:sassy).should match(/stylesheets\/sassy\.css/) end end context "When using the stylesheet helper from a sub page" do before do @links = stylesheets end it "should link relative to current page" do @links.should match(/\.\.\/stylesheets/) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticmatic3-2.1.10 | spec/helpers/asset_helper_spec.rb |
staticmatic3-2.1.9 | spec/helpers/asset_helper_spec.rb |