[rspec-users] calling a step from a step

James Byrne lists at ruby-forum.com
Mon Nov 24 11:18:43 EST 2008


James Byrne wrote:

> When /should determine the party (.*) do |n|
>   When "obtain the party #{n}"
> end
> 

Missed the next follow on lines. Snippet should be:

When /should determine the party (.*) do |n|
  When "obtain the party #{n}"
end

Then /record the party/ do
  Entity.destroy_all
  @party.save!
end
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list