摘要: What is the real difference between shared_examples and shared_context ? My observations : I can test same things using both (i.e. with shared_example 阅读全文
posted @ 2016-05-11 13:57 PointNet 阅读(479) 评论(0) 推荐(0) 编辑
摘要: It’s pretty common to have multiple tests that are nearly the same. In one app, we support bidding on both online and hammer auctions (auctions with p 阅读全文
posted @ 2016-05-11 11:43 PointNet 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Concerns are a new feature that was added in Rails 4. They allow to clean up code in your models and controllers. They also allow you to share functio 阅读全文
posted @ 2016-05-11 11:41 PointNet 阅读(310) 评论(0) 推荐(0) 编辑