[Ironruby-core] No tests were specified

Kevin Radcliffe lists at ruby-forum.com
Mon Jul 6 12:56:49 EDT 2009


Mohammad Azam wrote:
> not sure why I am getting the following error when running the tests:
..error..
> No tests were specified.
> 
> 1 tests, 1 assertions, 1 failures, 0 errors
> 
> 
> Here is my test file:
> 
> require 'test/unit'
> 
> class Test_Customer < Test::Unit::TestCase
> 
> def foo
> 
> assert_equal(1,1)
> 
> end
> 
> end

I believe test methods need to start with test_
Try renaming "foo" to "test_foo"
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list