DEFAULT_STARTING_SCORE = 10
DEFAULT_STARTING_WORD  = "hangman"

Given(/^I start a new game of hangman$/) do
  @game = Game.new
end

Then(/^the (.*) should be set$/) do |field|
  expect(@game.send(field)).not_to be_nil
end

Then(/^the (.*) should be the default$/) do |field|
  expect(@game.send(field)).to eql Object.const_get("DEFAULT_STARTING_#{field.upcase}")
end

DEFAULT_STARTING_SCORE = 10
DEFAULT_STARTING_WORD  = "hangman"

Given(/^I start a new game of hangman$/) do
  @game = Game.new
end

Then(/^the (.*) should be set$/) do |field|
  expect(@game.send(field.gsub(/ /, "_"))).not_to be_nil
end

Then(/^the (.*) should be the default$/) do |field|
  expect(@game.send(field.gsub(/ /, "_"))).to eql Object.const_get("DEFAULT_STARTING_#{field.upcase}")
end

Allow the cuc steps to have variable names with spaces
Allow the cuc steps to have variable names with spaces

Replaces them with underscores before "send"ing it to the object
