From f22c1a2374cdcae05341228bc1f9d7880d86f5cb Mon Sep 17 00:00:00 2001 From: byplayer Date: Thu, 3 Jun 2010 03:02:57 +0900 Subject: [PATCH 10/11] add spec for delete --- spec/integration/mechanize/spec/mechanize_spec.rb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/spec/integration/mechanize/spec/mechanize_spec.rb b/spec/integration/mechanize/spec/mechanize_spec.rb index ba84e87..f65948e 100644 --- a/spec/integration/mechanize/spec/mechanize_spec.rb +++ b/spec/integration/mechanize/spec/mechanize_spec.rb @@ -33,4 +33,9 @@ describe "Webrat's Mechanize mode" do response.should contain("putted") response.should contain("put data") end + + it "should delete" do + response = visit("http://#{TEST_HOST}/delete_test", :delete) + response.should contain("deleted") + end end -- 1.7.1