diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-08 09:29:07 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-08 09:29:07 +0200 |
commit | a0e482e807af5a1cd1470a1dd4efd97920e8c89e (patch) | |
tree | fb1c9cf7879cf5ceaa78cfd9d28452a0d40a5b85 /railties/test | |
parent | 54b09e17d4527bb4e5508d7dcb286040c3e3ea3f (diff) | |
download | rails-a0e482e807af5a1cd1470a1dd4efd97920e8c89e.tar.gz rails-a0e482e807af5a1cd1470a1dd4efd97920e8c89e.tar.bz2 rails-a0e482e807af5a1cd1470a1dd4efd97920e8c89e.zip |
Ensure rack body responds to each.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/railties/engine_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index 5eed4def14..ee01a4d6de 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -71,8 +71,7 @@ module RailtiesTest @plugin.write "lib/bukkits.rb", <<-RUBY class Bukkits class Engine < ::Rails::Engine - endpoint lambda { |env| [200, {'Content-Type' => 'text/html'}, 'Hello World'] } - + endpoint lambda { |env| [200, {'Content-Type' => 'text/html'}, ['Hello World']] } config.middleware.use ::RailtiesTest::EngineTest::Upcaser end end @@ -102,7 +101,7 @@ module RailtiesTest @plugin.write "config/routes.rb", <<-RUBY Bukkits::Engine.routes.draw do - match "/foo" => lambda { |env| [200, {'Content-Type' => 'text/html'}, 'foo'] } + match "/foo" => lambda { |env| [200, {'Content-Type' => 'text/html'}, ['foo']] } end RUBY |