assets_booster 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
data/spec/mixin/css_spec.rb
CHANGED
@@ -53,7 +53,7 @@ module AssetsBooster
|
|
53
53
|
end
|
54
54
|
|
55
55
|
describe "hostify_urls" do
|
56
|
-
it "should
|
56
|
+
it "should add the given base url to non-external urls" do
|
57
57
|
subject.hostify_urls("http://webcache.eu", "{color:#f00; background:url(test.png)}").should == "{color:#f00; background:url(http://webcache.eu/test.png)}"
|
58
58
|
subject.hostify_urls("http://webcache.eu", "{color:#f00; background:url(/test.png)}").should == "{color:#f00; background:url(http://webcache.eu/test.png)}"
|
59
59
|
subject.hostify_urls("http://webcache.eu", "{color:#f00; background:url(nested/test.png)}").should == "{color:#f00; background:url(http://webcache.eu/nested/test.png)}"
|
@@ -39,7 +39,7 @@ module AssetsBooster
|
|
39
39
|
subject.view_helper(@view, @options)
|
40
40
|
end
|
41
41
|
|
42
|
-
describe "and the
|
42
|
+
describe "and the hostify_urls option set to true" do
|
43
43
|
before do
|
44
44
|
@options[:inline] = {:hostify_urls => true}
|
45
45
|
end
|
@@ -52,7 +52,7 @@ module AssetsBooster
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
describe "and the
|
55
|
+
describe "and the hostify_urls option set to a string" do
|
56
56
|
before do
|
57
57
|
@options[:inline] = {:hostify_urls => "http://myhost.eu"}
|
58
58
|
end
|