-
-
Save jlstr/2166049 to your computer and use it in GitHub Desktop.
First Feature from Cuke book
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^the input "([^"]*)"$/ do |input| | |
@input = input | |
end | |
When /^the calculator is run$/ do | |
@output = "ruby calc.rb #{@input}" | |
raise "Command failed!" unless $?.success? | |
end | |
Then /^the output should be "([^"]*)"$/ do |arg1| | |
pending # express the regexp above with the code you wish you had | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment