Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rails 3.1 stores the stylesheet expansions elsewhere

  • Loading branch information...
commit 92718a0fa18ff4c1333c157ec3ebbaaf3d8ac7e8 1 parent 90aad4a
@mjankowski mjankowski authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 spec/initialization_spec.rb
View
14 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
+
Please sign in to comment.
Something went wrong with that request. Please try again.