diff options
author | Jiri Pospisil <mekishizufu@gmail.com> | 2012-12-31 17:46:19 +0100 |
---|---|---|
committer | Jiri Pospisil <mekishizufu@gmail.com> | 2012-12-31 17:46:19 +0100 |
commit | dbacb95a2187e853c0615f30919a407744162595 (patch) | |
tree | 016784d9adcdeb389d0cde881bb28fe15fe71f05 /railties/test | |
parent | 5e5107430bccc0a536e0b264c951793d8fe62235 (diff) | |
download | rails-dbacb95a2187e853c0615f30919a407744162595.tar.gz rails-dbacb95a2187e853c0615f30919a407744162595.tar.bz2 rails-dbacb95a2187e853c0615f30919a407744162595.zip |
Fix usage of lambda as a Rack endpoint
The response body needs to respond_to? :each.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/assets_test.rb | 2 | ||||
-rw-r--r-- | railties/test/railties/engine_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index f98915d1cc..638df8ca23 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -45,7 +45,7 @@ module ApplicationTests app_file 'config/routes.rb', <<-RUBY AppTemplate::Application.routes.draw do - get '*path', to: lambda { |env| [200, { "Content-Type" => "text/html" }, "Not an asset"] } + get '*path', to: lambda { |env| [200, { "Content-Type" => "text/html" }, ["Not an asset"]] } end RUBY diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index fcbe7b6cda..a4a75fe459 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -568,7 +568,7 @@ YAML @plugin.write "lib/bukkits.rb", <<-RUBY module Bukkits class Engine < ::Rails::Engine - endpoint lambda { |env| [200, {'Content-Type' => 'text/html'}, 'hello'] } + endpoint lambda { |env| [200, {'Content-Type' => 'text/html'}, ['hello']] } end end RUBY |