Sha256: aa4dc9c1eea1db86aec1d818905b3e1e5877c150f546c3804035a0e07697afce

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "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
    }
    page = @agent.get('http://localhost/tc_blank_form.html')
    assert_equal(1, onload)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
kitamomonga-mechanize-0.9.3.20090724215219 test/test_history_added.rb
tenderlove-mechanize-0.9.3.20090911221705 test/test_history_added.rb