Re: [rspec-users] calling multiline steps from other steps

2008-12-22 Thread Pau Cor
Aslak Hellesøy wrote: > And please link to this thread in the ticket. Nabble or somesuch. I am sorry for taking so long to post the ticket: http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/144-call-multiline-steps-from-other-steps -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] calling multiline steps from other steps

2008-12-05 Thread Andrew Premdas
Ooh interesting stuff thanks for that Ben, never got past the scenario tables until now :) Andrew 2008/12/5 Ben Mabey <[EMAIL PROTECTED]> > Andrew Premdas wrote: > >> Given /^I have filled in the form$/ do |details| >> details.hashes.each |pair| >> >> Can't see this working because you've got n

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Aslak Hellesøy
And please link to this thread in the ticket. Nabble or somesuch. Ben Mabey wrote: you will just have to experiment and see. Thanks for the reply! So far all my experiments have failed :/ Anyone else have any ideas? Paul -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Aslak Hellesøy
Ben Mabey wrote: you will just have to experiment and see. Thanks for the reply! So far all my experiments have failed :/ Anyone else have any ideas? Not possible yet. Please file a ticket. Paul -- Posted via http://www.ruby-forum.com/. ___ r

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Ben Mabey
Andrew Premdas wrote: Given /^I have filled in the form$/ do |details| details.hashes.each |pair| Can't see this working because you've got no place to collect details However Given /^I have filled in the form with (.*)$/ do |details| details.hashes.each |pair| would work, but you'd have to

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Andrew Premdas
Given /^I have filled in the form$/ do |details| details.hashes.each |pair| Can't see this working because you've got no place to collect details However Given /^I have filled in the form with (.*)$/ do |details| details.hashes.each |pair| would work, but you'd have to do some tricky stuff to

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Pau Cor
Ben Mabey wrote: > you will just have to > experiment and see. Thanks for the reply! So far all my experiments have failed :/ Anyone else have any ideas? Paul -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge

Re: [rspec-users] calling multiline steps from other steps

2008-12-04 Thread Ben Mabey
Pau Cor wrote: What is the syntax for calling multiline steps from other steps? I'd like to do something like this: Given /^I have filled in the form$/ do |details| details.hashes.each |pair| When "I fill in #{pair['field']} with #{pair['value']}" end end Yes, you can do this. Give