Sha256: e0f12603346118d8e90c0882a5c91046f2fcff91ecf187dac39a57416a1d23aa
Contents?: true
Size: 528 Bytes
Versions: 12
Compression:
Stored size: 528 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'rubygems' require 'mechanize' require 'test_includes' class TestPage < 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
12 entries across 12 versions & 1 rubygems