Sha256: 606125ced05c72a49370dc75001f31bfe296c8aa518f7b2354c307b58e4ab9f3
Contents?: true
Size: 359 Bytes
Versions: 3
Compression:
Stored size: 359 Bytes
Contents
require 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mechanize-0.7.6 | test/tc_history_added.rb |
mechanize-0.7.7 | test/test_history_added.rb |
mechanize-0.7.8 | test/test_history_added.rb |