test/test_select.rb in tenderlove-mechanize-0.9.3.20090623142847 vs test/test_select.rb in tenderlove-mechanize-0.9.3.20090911221705
- old
+ new
@@ -1,10 +1,10 @@
require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
class SelectTest < Test::Unit::TestCase
def setup
- @agent = WWW::Mechanize.new
+ @agent = Mechanize.new
@page = @agent.get("http://localhost/form_select.html")
@form = @page.forms.first
end
def test_select_none
@@ -16,10 +16,10 @@
@form.fields_with(:name => 'list').first.select_all
assert_equal('6', @form.list)
end
def test_correct_class
- assert_instance_of(WWW::Mechanize::Form::SelectList,
+ assert_instance_of(Mechanize::Form::SelectList,
@form.field_with(:name => 'list'))
end
def test_click_all
@form.field_with(:name => 'list').options.each { |o| o.click }