diff --git a/spec/integration/mechanize/sample_app.rb b/spec/integration/mechanize/sample_app.rb index 13a4b78..f667627 100644 --- a/spec/integration/mechanize/sample_app.rb +++ b/spec/integration/mechanize/sample_app.rb @@ -17,4 +17,33 @@ class SampleApp < Sinatra::Default get "/redirected" do "Redirected" end + + get "/not_allowed" do + halt 412, 'not allowed' + end + + delete "/not_allowed" do + halt 412, 'not allowed' + end + + put "/not_allowed" do + halt 412, 'not allowed' + end + + post "/not_allowed" do + halt 412, 'not allowed' + end + + delete "/do_delete" do + "resource deleted" + end + + put "/do_put" do + "resource updated with: #{params[:data]}" + end + + post "/do_post" do + "resource created with: #{params[:data1]}, #{params[:data2]}" + end + end