Sha256: b49912b1625fd3d6f3581af6974226986800125f99cc811303cb7921bd25b99b

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

require "helper"

class HistoryAddedTest < MiniTest::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

3 entries across 3 versions & 3 rubygems

Version Path
aai10-mechanize-2.0.1.0 test/test_history_added.rb
neocoin-mechanize-2.0.2 test/test_history_added.rb
mechanize-2.0.1 test/test_history_added.rb