-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rails 3.1 stores the stylesheet expansions elsewhere
- Loading branch information
1 parent
90aad4a
commit 92718a0
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|