assets_booster 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,9 +17,7 @@ module AssetsBooster
|
|
17
17
|
|
18
18
|
describe "with the inline option enabled" do
|
19
19
|
it "should return a javascript tag with inline javascript" do
|
20
|
-
|
21
|
-
subject.stub(:assets).and_return(assets)
|
22
|
-
subject.should_receive(:read).with(assets).and_return("javascript code")
|
20
|
+
subject.should_receive(:read).with().and_return("javascript code")
|
23
21
|
@view.should_receive(:javascript_tag).with("javascript code")
|
24
22
|
subject.view_helper(@view, :inline => true)
|
25
23
|
end
|
@@ -17,9 +17,7 @@ module AssetsBooster
|
|
17
17
|
|
18
18
|
describe "with the inline option enabled" do
|
19
19
|
it "should return a style tag with inline css" do
|
20
|
-
|
21
|
-
subject.stub(:assets).and_return(assets)
|
22
|
-
subject.should_receive(:read).with(assets).and_return("css code")
|
20
|
+
subject.should_receive(:read).with().and_return("css code")
|
23
21
|
@view.should_receive(:style_tag).with("css code")
|
24
22
|
subject.view_helper(@view, :inline => true)
|
25
23
|
end
|