Skip to content

Instantly share code, notes, and snippets.

@torstello
Created September 18, 2013 16:18
Show Gist options
  • Save torstello/6611610 to your computer and use it in GitHub Desktop.
Save torstello/6611610 to your computer and use it in GitHub Desktop.
test: foobar
Given /^the secret code is "([^"]*)"$/ do |secret|
game = Codebreaker::Game.new(output)
game.start(secret)
end
When /^I start a new game$/ do
game = Codebreaker::Game.new(output)
game.start
end
Then /^I should see "([^"]*)"$/ do |message|
output.messages.should include(message)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment