test/test_links.rb in tenderlove-mechanize-0.9.3.20090623142847 vs test/test_links.rb in tenderlove-mechanize-0.9.3.20090911221705
- old
+ new
@@ -1,15 +1,15 @@
require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
class LinksMechTest < Test::Unit::TestCase
def setup
- @agent = WWW::Mechanize.new
+ @agent = Mechanize.new
end
def test_unsupported_link_types
page = @agent.get("http://google.com/tc_links.html")
link = page.link_with(:text => 'javascript link')
- assert_raise(WWW::Mechanize::UnsupportedSchemeError) {
+ assert_raise(Mechanize::UnsupportedSchemeError) {
link.click
}
@agent.scheme_handlers['javascript'] = lambda { |my_link, my_page|
URI.parse('http://localhost/tc_links.html')