Permalink
Browse files

Ensure rack body responds to each.

  • Loading branch information...
1 parent 54b09e1 commit a0e482e807af5a1cd1470a1dd4efd97920e8c89e @josevalim josevalim committed Oct 8, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 railties/test/railties/engine_test.rb
@@ -71,8 +71,7 @@ def call(env)
@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 @@ class Engine < ::Rails::Engine
@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

0 comments on commit a0e482e

Please sign in to comment.