Sha256: 032f5b18e14611c37a708afb3b4ff9dcfb437d0cff447fe03b917a5ebead4087
Contents?: true
Size: 390 Bytes
Versions: 3
Compression:
Stored size: 390 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class TestPage < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_title page = @agent.get("http://localhost/file_upload.html") assert_equal('File Upload Form', page.title) end def test_no_title page = @agent.get("http://localhost/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.7.1 | test/tc_page.rb |
mechanize-0.7.0 | test/tc_page.rb |
mechanize-0.7.2 | test/tc_page.rb |