[rspec-users] Sinitra and Cucumber

2009-02-15 Thread Andrew Premdas
Hi all, Anyone using cucumber with sinitra (current). Wondering if I need to use Aslaks sinatra/webrat forks. Also if anyone has a sample app :) All best Andrew ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinf

Re: [rspec-users] [cucumber] can't use 'visit' except with `rake features`

2009-02-15 Thread r_j_h_box-sf
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!) Shazyam

Re: [rspec-users] how to write complex matchers

2009-02-15 Thread Phlip
Yury Kotlyarov wrote: Phlip wrote: Yury Kotlyarov wrote: http://github.com/yura/howto-rspec-custom-matchers/ The project aims to encourage feedback on the best practices of creating custom expectation matchers and specs for them. Does it make sense? That just says it's a "project". One

Re: [rspec-users] [cucumber] can't use 'visit' except with `rake features`

2009-02-15 Thread James Byrne
unknown wrote: how are you invoking cucumber from the command line? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [cucumber] can't use 'visit' except with `rake features`

2009-02-15 Thread r_j_h_box-sf
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

Re: [rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-15 Thread Ben Mabey
Zach Dennis wrote: On Sun, Feb 15, 2009 at 2:21 PM, Joaquin Rivera Padron wrote: hey there, the short version: right now Cucumber provides hooks Before and After to be run around every step, I have notice some use case where BeforeAll and AfterAll hooks would be useful. are ther plans that t

Re: [rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-15 Thread Zach Dennis
On Sun, Feb 15, 2009 at 2:21 PM, Joaquin Rivera Padron wrote: > hey there, > the short version: > right now Cucumber provides hooks Before and After to be run around every > step, I have notice some use case where BeforeAll and AfterAll hooks would > be useful. > are ther plans that they be provid

[rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-15 Thread Joaquin Rivera Padron
hey there, the short version: right now Cucumber provides hooks Before and After to be run around every step, I have notice some use case where BeforeAll and AfterAll hooks would be useful. are ther plans that they be provided? what you think would be the best place to do it (mother_step.rb)? any i

Re: [rspec-users] Celerity and Webrat (using them together, Benchmarks, same API?)

2009-02-15 Thread Joaquin Rivera Padron
hey Ben, thanks for your answers, I'll give kamal work a try and have a look at the points you are pointing about webrat. I've been playing with culerity for two days and it does not sound difficult to accomplish this we are talking. But I was talking from the culerity part (haven't look too much

Re: [rspec-users] Celerity and Webrat (using them together, Benchmarks, same API?)

2009-02-15 Thread Ben Mabey
Joaquin Rivera Padron wrote: 1. How usefull would be to have a common API between Webrat and Celerity? Very useful! In fact someone (Kamal) has already started doing that. Check out his work on his webrat fork: http://github.com/kamal/webrat/tree/1543bc64ecf85054f9a033e1fc7670806886b41e/li

Re: [rspec-users] [Cucumber] ssl requirement

2009-02-15 Thread Wincent Colaiuta
El 14/2/2009, a las 21:56, James Byrne escribió: Wincent Colaiuta wrote: # always return false for tests return false if RAILS_ENV == 'test' I brand this as "hideous" because it commits the heinous crime of dynamically modifying application behaviour only when execution within the tes

[rspec-users] Celerity and Webrat (using them together, Benchmarks, same API?)

2009-02-15 Thread Joaquin Rivera Padron
hey there, I've been using Cucumber + Webrat for a while. The time has come to spec Js and Ajax, so I've been playing around with celerity features (with culerity until now). 1. How usefull would be to have a common API between Webrat and Celerity? I found usefull to translate webrat steps painle