When /obtain the party (.*)/ do |n|
n case
when “common name” @party.entity_name = “Anything will do”
when “legal name” @party.entity_legal_name = “Something a Bit Longer I SHOULD think”
when “corporate form” @party.entity_legal_form = “PERS”
else
raise ArgumentError, “#{n} attribute is not provided for.”
end
end
When /should determine the party (.*) do |n|
When “obtain the party #{n}”
end
rake features gives this error:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require’: ./features/step_definitions/entity_steps.rb:28:
unknown regexp options - rcrd (SyntaxError)
./features/step_definitions/entity_steps.rb:28: syntax error
Then /record the party/ do
^
./features/step_definitions/entity_steps.rb:28: syntax error
I understood that as of 0.1.7 cucumber supported steps from step calls.
Have I mistyped or misunderstood something
When /should determine the party (.*) do |n|
When “obtain the party #{n}”
end
Another helpful tidbit that I neglected to post. The reason that I
focused on the step from step method shown above is that when I comment
these lines out the following method “Then /record the party/” run fine.