Sha256: 4966ab808e901e7817e3bb760af94f418aacf5dc7dd7ea9f4a93a5bbbb368930
Contents?: true
Size: 386 Bytes
Versions: 15
Compression:
Stored size: 386 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class HistoryAddedTest < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_history_added_gets_called onload = 0 @agent.history_added = lambda { |page| onload += 1 } page = @agent.get('http://localhost/tc_blank_form.html') assert_equal(1, onload) end end
Version data entries
15 entries across 15 versions & 5 rubygems