![]() | Chapter 2 step definitions formatting problem? |
|
15 Jan 2013, 15:49
Alistair Young (5 posts) |
When I copy/paste the step definitions they don’t seem to work. The formatting is off in the editor due to the odd number of quotes which seems to cause it to ignore the 3rd definition Feature: Adding
1 scenario (1 pending) You can implement step definitions for undefined steps with these snippets: When /^the calculator is run Then the output should be “(.?)”$/ do |arg1|
pending # express the regexp above with the code you wish you had |
|
15 Jan 2013, 15:50
Alistair Young (5 posts) |
The book has: Given /the input “([“])”$/ do |arg1|
pending # express the regexp above with the code you wish you had When /the calculator is run$/ do
pending # express the regexp above with the code you wish you had Then /the output should be “([^“])”$/ do |arg1|
pending # express the regexp above with the code you wish you had |
|
15 Jan 2013, 16:08
Alistair Young (5 posts) |
then again I could just copy/paste correctly! Missed out the Then in the feature. Seems to be ok now |
|
16 Jan 2013, 10:04
Matt Wynne (83 posts) |
Good :) |
| You must be logged in to comment |

