Sha256: e3a6457ccdbe8a82d6558fd3d36fe337c612375690708f3b65b8551851315118
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require "helper" class TestPrettyPrint < Test::Unit::TestCase def setup @agent = Mechanize.new end def test_pretty_print @agent.get("http://localhost/tc_pretty_print.html") pretty_string = @agent.pretty_print_inspect assert_match("{title \"tc_pretty_print.html\"}", pretty_string) assert_match(/\{frames[^"]*"http:\/\/meme/, pretty_string) assert_match(/\{iframes[^"]*"http:\/\/meme/, pretty_string) assert_match( "{links #<Mechanize::Page::Link \"Google\" \"http://google.com/\">}", pretty_string ) assert_match("form1", pretty_string) assert_match("POST", pretty_string) assert_match("{file_uploads}", pretty_string) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mechanize-2.0 | test/test_pretty_print.rb |