James
James

Reputation: 680

rails 3 unit test not running

The following code exists in test/unit/this_stupid_test.rb

require 'test/unit'

class ThisStupidTest < Test::Unit::TestCase
  def better_be_true
    assert true
  end
end

When I run rake test:units it says finished with 0 tests and 0 assertions.

It says the same thing when I run ruby test/unit/this_stupid_test.rb

Any ideas?

Upvotes: 2

Views: 1078

Answers (1)

Adam Tanner
Adam Tanner

Reputation: 927

Try changing your method definition to def test_better_be_true.

Upvotes: 6

Related Questions