test/test_select_noopts.rb in mechanize-0.8.4 vs test/test_select_noopts.rb in mechanize-0.8.5
- old
+ new
@@ -6,10 +6,10 @@
@page = @agent.get("http://localhost/form_select_noopts.html")
@form = @page.forms.first
end
def test_select_default
- assert_not_nil(@form.fields.name('list').first)
+ assert_not_nil(@form.field('list'))
assert_nil(@form.list)
page = @agent.submit(@form)
assert_equal(0, page.links.length)
end
end