Sha256: 455d36a338465b849e68bbafa64c9d5887a61d5e73288af91d111190c9dea76e
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 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 { |a| a.log = Logger.new(nil) } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mechanize-0.5.1 | test/tc_page.rb |
mechanize-0.5.0 | test/tc_page.rb |
mechanize-0.5.2 | test/tc_page.rb |