`
Hooopo
  • 浏览: 329292 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

rspec学习笔记

    博客分类:
  • Ruby
阅读更多
1.fixture里的数据在调用fixtures方法时创建,ExampleGroup运行结束不清空,下一个ExampleGroup运行时清空整个测试数据库。

2.每个ExampleGroup实例方法(it)创建或修改的数据会在下一个ExampleGroup实例方法执行前还原。
分享到:
评论
2 楼 fantasybei 2010-06-22  
围观虎跑大牛,-_-!!!!
1 楼 Hooopo 2010-06-15  
引用
In our case… the controller specs were using mocks…. so they never failed… and the application used to start failing… This was an uncomfortable scenario….
When things like this started happening more often… we decided to stop mocking for models…

相关推荐

Global site tag (gtag.js) - Google Analytics