test/test_select_noopts.rb in mechanize-2.0 vs test/test_select_noopts.rb in mechanize-2.0.1

- old
+ new

@@ -1,16 +1,18 @@ require "helper" -class SelectNoOptionsTest < Test::Unit::TestCase +class SelectNoOptionsTest < MiniTest::Unit::TestCase def setup @agent = Mechanize.new @page = @agent.get("http://localhost/form_select_noopts.html") @form = @page.forms.first end def test_select_default - assert_not_nil(@form.field('list')) - assert_nil(@form.list) + assert @form.field('list') + assert_nil @form.list + page = @agent.submit(@form) + assert_equal(0, page.links.length) end end