r_j_h_box-sf at yahoo.com
2009-Feb-15 22:19 UTC
[rspec-users] [cucumber] can''t use ''visit'' except with `rake features`
I ported some stories from restful_authentication so that they can use cucumber, and it worked fine in `rake features`. Now when I try to run under autospec or `cucumber features`, I''m getting failures with undefined method `get''. When I change ''get'' to ''visit'', same symptom (undefined method `visit''), but I''m getting other issues (redirects not being detected or issued) when running in rake. I can''t see that I''m doing anything out of the ordinary. I have require "webrat/rails" in my support/env.rb, along with... well, here''s my env.rb: http://gist.github.com/64875 Anybody have ideas what could be going on here? Thanks, Randy
James Byrne
2009-Feb-16 02:39 UTC
[rspec-users] [cucumber] can''t use ''visit'' except with `rake features`
unknown wrote: how are you invoking cucumber from the command line? -- Posted via http://www.ruby-forum.com/.
r_j_h_box-sf at yahoo.com
2009-Feb-16 06:16 UTC
[rspec-users] [cucumber] can''t use ''visit'' except with `rake features`
I''m running it like so: $ cucumber features/ I''ve also tried using --require config/boot.rb --require features --require config/environment.rb and now, I''ve tried with --require lib --require features features/ (nope) --require features --require lib features/ (yes!) Shazaaaayam! Okay, thank you for the hint. Lessee, then for autospec... aha. Yep. cucumber.yml, check. Added these working args to the autotest and autotest-all config, working well now. Okay, updated the wiki page to add some details. These work for me now. http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails I''d appreciate a review of this stuff I''ve added - hopefully it provides more help than harm to others in my situation. :) Thanks, Randy ----- Original Message ----> From: James Byrne <lists at ruby-forum.com> > To: rspec-users at rubyforge.org > Sent: Sunday, February 15, 2009 6:39:25 PM > Subject: Re: [rspec-users] [cucumber] can''t use ''visit'' except with `rake features` > > unknown wrote: > > how are you invoking cucumber from the command line? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users