Re: [rspec-users] using rSpec stub in Cucumber with rSpec2

2010-07-01 Thread Florent Florent
> > 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 rS

[rspec-users] using rSpec stub in Cucumber with rSpec2

2010-07-01 Thread Florent Florent
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 Cuc

Re: [rspec-users] [RSpec, Rails] POST create action spec and before_filter

2009-05-19 Thread Florent Florent
2009/5/19 Florent Florent > > > 2009/5/19 Tero Tilus > >> Moreover the "should >> set @context" is imo a spec smell (even though it's in description >> string), because it refers to internal state of a PagesController >> instance, whic

Re: [rspec-users] [RSpec, Rails] POST create action spec and before_filter

2009-05-19 Thread Florent Florent
2009/5/19 Tero Tilus > 2009-05-18 21:40, Florent Florent: > > I have this controller: http://pastie.org/482270 > > I wrote this spec: http://pastie.org/482273 > > There are a few spots which draw my attention. At spec line 4 you > create a mock Page with #save that alway

[rspec-users] [RSpec, Rails] POST create action spec and before_filter

2009-05-18 Thread Florent Florent
Hello, I face the following problem for a POST create action spec. I have this controller: http://pastie.org/482270 I wrote this spec: http://pastie.org/482273 The spec "should set @context" works fine. But when running the spec "should build a new message" I got this error: expected :new wi