[rspec-users] cucumber/rails tutorial #2
walketim at gmail.com
Mon Dec 29 18:31:15 EST 2008
This is outstanding work and very useful, very nice.
Question: In your quest for BDD nirvana have you broached the subject
of setup/teardown and reuse of Setup code?
What is a clean way of establishing a complex baseline state before
operating on it with a suite of cucumber tests and without duplicating
the "Given" in all of the subsequent "When" and "Thens"? Do you add a
"helper.rb" to the steps folder or ? to keep this clean?
On Mon, Dec 29, 2008 at 11:06 AM, Sarah Allen <lists at ruby-forum.com> wrote:
> I thought you all might be interested in my second tutorial:
> It covers more webrat plus a trickier delete scenario, based on a
> previous thread: http://www.ruby-forum.com/topic/171269
> I also tried to follow Matt Wynne's refactoring advice
> http://www.ruby-forum.com/topic/174015#762387 but realized that I still
> need to learn a lot before I understand all the Rails magic that goes on
> when I call generate scaffold, but I posted that question over on the
> wider Rails forum: http://www.ruby-forum.com/topic/174419#new
> Interested, as always, if folks read the tutorial and would advise a
> different approach or improvements, and I'd be happy to answer questions
> if I'm ahead of anyone on the cucumber/rails/ruby learning curve :)
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users