提交 92cb0b8b 编写于 作者: A Aaron Patterson

third parameter for rack must respond to each

上级 0a515dc6
......@@ -177,7 +177,7 @@ def index
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 @@ def index
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册