test/test_verbs.rb in mechanize-0.9.3 vs test/test_verbs.rb in mechanize-1.0.0

- old
+ new

@@ -1,13 +1,13 @@ -require File.expand_path(File.join(File.dirname(__FILE__), "helper")) +require "helper" class VerbsTest < Test::Unit::TestCase def setup - @agent = WWW::Mechanize.new + @agent = Mechanize.new end def test_put - page = @agent.put('http://localhost/verb', { 'q' => 'foo' }) + page = @agent.put('http://localhost/verb', 'foo') assert_equal 1, @agent.history.length assert_equal('method: PUT', page.body) end def test_delete