This is odd:
require 'rubygems'
require 'firewatir'
require 'test/unit'
require 'firewatir/testUnitAddons'
include FireWatir
ff = FireWatir::Firefox.new()
ff.goto("http://www.socialtext.net/stoss/index.cgi?mcmahon_test")
ff.link(:text, "Help").click
sleep 5
ff.attach(:title, /Documentation/)
assert_match("Help Table of Contents",ff.text)
yields
test.rb:13: undefined method `assert_match' for main:Object (NoMethodError)
I've tried plain 'assert' also with the same result.
I've got Ruby 1.8.6 installed in /usr/local (OSX), and I've removed
the default ruby from my env. Why would the assert methods from
'test/unit' not be findable? The code exists in
/usr/local/lib/ruby/1.8/test/unit/assertions.rb
$ which ruby
/usr/local/bin/ruby
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general