Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Created March 27, 2012 01:42
Show Gist options
  • Select an option

  • Save steveklabnik/2211574 to your computer and use it in GitHub Desktop.

Select an option

Save steveklabnik/2211574 to your computer and use it in GitHub Desktop.
Given /^I have rolled the following game:$/ do |table|
@game = Game.new
table.hashes.each do |attributes|
@game.add_frame Frame.new(attributes)
end
end
Then /^I should score (\d+)$/ do |score|
@score.should = score
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment