From: Bharat Ruparel Date: 2007-02-20T02:50:15+09:00 Subject: Assertions Testing in irb I am working through the Everyday Scripting With Ruby book and am trying to run assertion tests in irb. If I type in: irb(main):005:0> require 'test/unit' => true As you can see above it returns true. I am assuming that this will load the unit test methods in irb. However, if I type in an assertion test as follows: irb(main):006:0> assert_equal('2005-03-4',svn_date(Time.local(2005,3,4))) NoMethodError: undefined method `assert_equal' for main:Object from (irb):6 from :0 It fails as above. I have also tried to use the load command as: load "Test::Unit" but that does not seem to work either. See below: irb(main):008:0> load "Test::Unit" LoadError: no such file to load -- Test::Unit from (irb):8:in `load' from (irb):8 from :0 What do I need to do to get the assertion methods working in irb? Thanks. Bharat -- Posted via http://www.ruby-forum.com/.