spec/support/json_test_app.rb in capybara-json-0.0.3 vs spec/support/json_test_app.rb in capybara-json-0.1.0

- old
+ new

@@ -52,6 +52,11 @@ end envs.merge('params' => params, 'headers' => headers, 'rack.input' => env['rack.input'].string) end end + + get '/errors/:status_code' do |status_code| + status status_code.to_i + { 'status_code' => status_code.to_i } + end end