[rspec-users] newbie cucumber tutorial
aslak.hellesoy at gmail.com
Wed Nov 16 12:46:56 EST 2011
On Wed, Nov 16, 2011 at 5:34 PM, Vin MR <lists at ruby-forum.com> wrote:
> I'm new with Ruby and Cucumber. I've tried this simple test, but it
> didn't work for me
> Given ....
> When I enter ABC on keyboard
> Then ...
> And here is the ruby code
> When /^I enter "([^\"]*) on keyboard$/ do |input|
That RegExp doesn't match your step. This will match:
/^I enter (.*) on keyboard$/
> I always get a complain when executing the test
> "You can implement step definitions for undefined steps with there
> When /^I enter ABC on keyboard$/ do
> pending # express the regexp above with the code you wish you had
> And the code above was not executed.
> Can anyone tell what I've done wrong here?
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users