aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/sprockets_helper_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-27 23:46:39 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-27 23:46:39 -0700
commitf07ff6b8fba58de373f20fd111ef2e7f4fe85744 (patch)
treecfe51404fb04b5eccb8a545ca30c59437f6555b3 /actionpack/test/template/sprockets_helper_test.rb
parent6a3eabe96b84f1df75dac79907f08d2f65dbf7d8 (diff)
parentdb5adf2d42d16859cde8f40e7b0b7fb41167cff4 (diff)
downloadrails-f07ff6b8fba58de373f20fd111ef2e7f4fe85744.tar.gz
rails-f07ff6b8fba58de373f20fd111ef2e7f4fe85744.tar.bz2
rails-f07ff6b8fba58de373f20fd111ef2e7f4fe85744.zip
Merge pull request #1372 from jacott/master
Fix for relative_url_root when used with sprockets
Diffstat (limited to 'actionpack/test/template/sprockets_helper_test.rb')
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb
index b26315083c..c2ee7f9582 100644
--- a/actionpack/test/template/sprockets_helper_test.rb
+++ b/actionpack/test/template/sprockets_helper_test.rb
@@ -57,6 +57,12 @@ class SprocketsHelperTest < ActionView::TestCase
asset_path("http://www.example.com/video/play.mp4")
end
+ test "asset path with relavtive url root" do
+ @controller.config.relative_url_root = "/collaboration/hieraki"
+ assert_equal "/collaboration/hieraki/images/logo.gif",
+ asset_path("/images/logo.gif")
+ end
+
test "javascript path" do
assert_equal "/assets/application-d41d8cd98f00b204e9800998ecf8427e.js",
asset_path(:application, "js")