Forum: RSpec Cucumber - adding a step definition

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tim H. (Guest)
on 2009-03-15 07:21
(Received via mailing list)
List,

Quick question about Cucumber/Gherkin.

I'm considering adding 'With' as a step definition to support scenarios
like:

Given a policy
With a PCF practice state
And a secondary risk
...

I'm fairly new to ruby - but I can't quite get this one figured out.
I've tried adding

Cucumber.alias_steps (['With'])

To my features/support/env.rb file, but when I run cucumber, I still get
a Syntax error. It looks like my 'with' never gets added to the original
list.

Suggestions?
--
Tim H.
Senior Software Engineer
PICA Group
615-713-9956 :cell
timothyjhart :Y!
removed_email_address@domain.invalid :AIM

*****************************************************************************

Disclaimer: This electronic message may contain information that is
Confidential or legally privileged. It is intended only for the use of
the individual(s) and entity named in the message. If you are not an
intended recipient of this message, please notify the sender immediately
and delete the material from your computer. Do not deliver, distribute
or copy this message and do not disclose its contents or take any action
in reliance on the information it contains.

*****************************************************************************
This topic is locked and can not be replied to.