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

Version Path
eric-mechanize-0.9.3.20090623142847 test/test_history_added.rb
knu-mechanize-0.9.3.20090623142847 test/test_history_added.rb
tenderlove-mechanize-0.9.3.20090617085936 test/test_history_added.rb
tenderlove-mechanize-0.9.3.20090623142847 test/test_history_added.rb
mechanize-ntlm-0.9.1 test/test_history_added.rb
mechanize-0.8.0 test/test_history_added.rb
mechanize-0.8.1 test/test_history_added.rb
mechanize-0.8.2 test/test_history_added.rb
mechanize-0.8.3 test/test_history_added.rb
mechanize-0.8.4 test/test_history_added.rb
mechanize-0.9.0 test/test_history_added.rb
mechanize-0.9.1 test/test_history_added.rb
mechanize-0.8.5 test/test_history_added.rb
mechanize-0.9.3 test/test_history_added.rb
mechanize-0.9.2 test/test_history_added.rb