Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40445
  • 博文数量: 27
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-24 00:44
文章分类
文章存档

2011年(1)

2009年(26)

我的朋友
最近访客

分类: Java

2009-04-29 15:41:18

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) |
给主人留下些什么吧!~~