Florent Florent
2010-Jul-01 15:25 UTC
[rspec-users] using rSpec stub in Cucumber with rSpec2
Hello, I have a Rails3beta4 project where I want to use rSpec stubs in a Cucumber feature. Unfortunately it looks like requiring ''spec/stubs/cucumber'' in env.rb does not work anymore: I get a "no such file to load -- spec/stubs/cucumber (LoadError)" error. Is it possible to use rSpec stubs in Cucumber with rSpec2? If not, is there any other viable alternative? Thanks for your help :) Florent -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100701/08aa52e5/attachment.html>
Florent Florent
2010-Jul-02 04:59 UTC
[rspec-users] using rSpec stub in Cucumber with rSpec2
> > Hello, > > I have a Rails3beta4 project where I want to use rSpec stubs in a Cucumber > feature. Unfortunately it looks like requiring ''spec/stubs/cucumber'' in > env.rb does not work anymore: I get a "no such file to load -- > spec/stubs/cucumber (LoadError)" error. > > Is it possible to use rSpec stubs in Cucumber with rSpec2? If not, is > there > any other viable alternative? >Alask has updated Cucumber so that we can now use RSpec 2 mockings frameworks: http://wiki.github.com/aslakhellesoy/cucumber/mocking-and-stubbing-with-cucumber -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100701/6a53f92a/attachment.html>