2012年11月26日
摘要: 在重构实战2和重构实战1里,我们讨论了与重构、测试有关的话题。截止上一篇结束时,完成了对User类的重构,但是测试用例代码还有些乱。让我们看看如何清理一下。 require 'test_helper' class UserTest < ActiveSupport::TestCase test "full name without middle initial" do user ... 阅读全文
posted @ 2012-11-26 23:26 边晓宇 阅读(970) 评论(0) 推荐(0) 编辑