Sha256: 5b4fb54b698ccba975b4d9ee34ee0b22709058d446d649d566ff2330975dc552

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 Bytes

Contents

require "helper"
class SelectAllTest < Test::Unit::TestCase
  def setup
    @agent = Mechanize.new
    @page = @agent.get("http://localhost/form_select_all.html")
    @form = @page.forms.first
  end

  def test_select_default
    assert_equal("6", @form.list)
    page = @agent.submit(@form)
    assert_equal(1, page.links.length)
    assert_equal(1, page.links_with(:text => 'list:6').length)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
domo-0.0.4 vendor/bundle/ruby/1.9.1/gems/mechanize-1.0.0/test/test_select_all.rb
mechanize-2.0 test/test_select_all.rb
mechanize-2.0.pre.2 test/test_select_all.rb
mechanize-2.0.pre.1 test/test_select_all.rb
mechanize-1.0.1.beta.20110107104205 test/test_select_all.rb
mechanize-1.0.0 test/test_select_all.rb