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