aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/sprockets_helper_with_routes_test.rb
diff options
context:
space:
mode:
authorSergey Nartimov + José Valim <jose.valim@gmail.com>2012-03-02 15:01:20 +0100
committerJosé Valim <jose.valim@gmail.com>2012-03-02 15:01:20 +0100
commitcd5dabab95924dfaf3af8c429454f1a46d9665c1 (patch)
tree41200dffbf8bf0ec0d6ff2068c19566771eef541 /actionpack/test/template/sprockets_helper_with_routes_test.rb
parentd7014bc7eaa62c36f045a503cdad64e4ebbc2687 (diff)
downloadrails-cd5dabab95924dfaf3af8c429454f1a46d9665c1.tar.gz
rails-cd5dabab95924dfaf3af8c429454f1a46d9665c1.tar.bz2
rails-cd5dabab95924dfaf3af8c429454f1a46d9665c1.zip
Optimize url helpers.
Diffstat (limited to 'actionpack/test/template/sprockets_helper_with_routes_test.rb')
-rw-r--r--actionpack/test/template/sprockets_helper_with_routes_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/sprockets_helper_with_routes_test.rb b/actionpack/test/template/sprockets_helper_with_routes_test.rb
index bcbd81a7dd..89b9940eb7 100644
--- a/actionpack/test/template/sprockets_helper_with_routes_test.rb
+++ b/actionpack/test/template/sprockets_helper_with_routes_test.rb
@@ -17,7 +17,7 @@ class SprocketsHelperWithRoutesTest < ActionView::TestCase
def setup
super
- @controller = BasicController.new
+ @controller = BasicController.new
@assets = Sprockets::Environment.new
@assets.append_path(FIXTURES.join("sprockets/app/javascripts"))
@@ -34,7 +34,7 @@ class SprocketsHelperWithRoutesTest < ActionView::TestCase
test "namespace conflicts on a named route called asset_path" do
# Testing this for sanity - asset_path is now a named route!
- assert_match asset_path('test_asset'), '/assets/test_asset'
+ assert_equal asset_path('test_asset'), '/assets/test_asset'
assert_match %r{/assets/logo-[0-9a-f]+.png},
path_to_asset("logo.png")