Sha256: 6fc69c4cd489f0c0b3f91f2dae63e4a61fe4a230020a672de97bd71437f3e4dc
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'rubygems' require 'mechanize' require 'test_includes' class PageTest < Test::Unit::TestCase include TestMethods def setup @agent = WWW::Mechanize.new end def test_title page = @agent.get("http://localhost:#{PORT}/file_upload.html") assert_equal('File Upload Form', page.title) end def test_no_title page = @agent.get("http://localhost:#{PORT}/no_title_test.html") assert_equal(nil, page.title) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mechanize-0.5.3 | test/tc_page.rb |
mechanize-0.5.4 | test/tc_page.rb |