spec/helpers/asset_helper_spec.rb in staticmatic2-2.0.2 vs spec/helpers/asset_helper_spec.rb in staticmatic2-2.1.0

- old
+ new

@@ -1,15 +1,14 @@ -require File.dirname(__FILE__) + "/../spec_helper" +require "spec_helper" describe "Helpers:" do include StaticMatic::Helpers::AssetsHelper include StaticMatic::Helpers::CurrentPathHelper include StaticMatic::Helpers::TagHelper before do setup_staticmatic - @staticmatic.instance_variable_set("@current_page", "") end context "When using the stylesheet helper" do before do @links = stylesheets @@ -30,10 +29,9 @@ end end context "When using the stylesheet helper from a sub page" do before do - @staticmatic.instance_variable_set("@current_page", "/sub/index.html") @links = stylesheets end it "should link relative to current page" do @links.should match(/\.\.\/stylesheets/)