test/test_post_form.rb in mechanize-1.0.1.beta.20110107104205 vs test/test_post_form.rb in mechanize-2.0.pre.1

- old
+ new

@@ -13,9 +13,16 @@ page.links.find { |l| l.text == "gender:female" }, "gender field missing" ) end + def test_post_form_json + page = @agent.post "http://localhost/form_post", + 'json' => '["""]' + + assert page.links.find { |l| l.text == 'json:["""]' } + end + def test_post_form_multival page = @agent.post("http://localhost/form_post", [ ['gender', 'female'], ['gender', 'male'] ]