in unit test, you needn't to right a method to run a test, you can juse do this:
class UserTest < ActiveSupport::TestCase
test "here is the test description" do
assert true
end
end
before you need to :
class UserTest < Test::Unit:TestCase
def test_just_a_example
assert true
end
end
阅读(552) | 评论(0) | 转发(0) |