Reputation: 680
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
Reputation: 927
Try changing your method definition to def test_better_be_true
.
Upvotes: 6