[url=http://rspec.info/rdoc/index.html]Rspec[/url]
[url=http://mocha.rubyforge.org/]Mocha[/url]
集成方法就是在spec_helper.rb里配置一下:
[code]
config.mock_with :mocha
[/code]
这样就可以在Rspec测试中使用Mocha了
[url=http://mocha.rubyforge.org/]Mocha[/url]
集成方法就是在spec_helper.rb里配置一下:
[code]
config.mock_with :mocha
[/code]
这样就可以在Rspec测试中使用Mocha了