diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 15:20:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 15:20:19 -0700 |
commit | 92cb0b8be658eb7e569d0a30c4ef78e093460194 (patch) | |
tree | 40ef0afa0e9b0042b6d679ee02028ab2531a8342 /railties | |
parent | 0a515dc68d632bde50ef31080f4edae624d3a90c (diff) | |
download | rails-92cb0b8be658eb7e569d0a30c4ef78e093460194.tar.gz rails-92cb0b8be658eb7e569d0a30c4ef78e093460194.tar.bz2 rails-92cb0b8be658eb7e569d0a30c4ef78e093460194.zip |
third parameter for rack must respond to each
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/routing_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index 42ee4c5ebc..416a5de5b0 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -177,7 +177,7 @@ module ApplicationTests assert_equal 'admin::foo', last_response.body end - test "reloads appended route blocks" do + def test_reloads_appended_route_blocks app_file 'config/routes.rb', <<-RUBY AppTemplate::Application.routes.draw do match ':controller#:action' @@ -186,7 +186,7 @@ module ApplicationTests add_to_config <<-R routes.append do - match '/win' => lambda { |e| [200, {'Content-Type'=>'text/plain'}, 'WIN'] } + match '/win' => lambda { |e| [200, {'Content-Type'=>'text/plain'}, ['WIN']] } end R |