Permalink
Browse files

rails 3.1 stores the stylesheet expansions elsewhere

  • Loading branch information...
1 parent 90aad4a commit 92718a0fa18ff4c1333c157ec3ebbaaf3d8ac7e8 @mjankowski mjankowski committed Sep 4, 2011
Showing with 11 additions and 3 deletions.
  1. +11 −3 spec/initialization_spec.rb
@@ -1,8 +1,16 @@
require 'spec_helper'
describe "initialize the rails app" do
- it "should add flutie directory to stylesheet expansion" do
- expected = { :flutie => ['/flutie/stylesheets/flutie'] }
- ActionView::Helpers::AssetTagHelper.send(:class_variable_get, :@@stylesheet_expansions).should == expected
+ let(:expected) { { :flutie => ['/flutie/stylesheets/flutie'] } }
+ if defined?(ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag)
+ it "should add flutie directory to the stylesheet include tag expansions" do
+ ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag.expansions.should == expected
+ end
+ else
+ it "should add flutie directory to stylesheet expansion" do
+ expected = { :flutie => ['/flutie/stylesheets/flutie'] }
+ ActionView::Helpers::AssetTagHelper.send(:class_variable_get, :@@stylesheet_expansions).should == expected
+ end
end
end
+

0 comments on commit 92718a0

Please sign in to comment.