Skip to content

Commit

Permalink
rails 3.1 stores the stylesheet expansions elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Sep 4, 2011
1 parent 90aad4a commit 92718a0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spec/initialization_spec.rb
Original file line number Diff line number Diff line change
@@ -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.