Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Last active August 29, 2015 14:04
Show Gist options
  • Save pumpkincouture/9aa94eb206d893bb8929 to your computer and use it in GitHub Desktop.
Save pumpkincouture/9aa94eb206d893bb8929 to your computer and use it in GitHub Desktop.
require_relative 'spec_helper.rb'
describe Game do
before :each do
@new_game=Game.new
end
describe "#new" do
it "creates a new instance of Game" do
expect(@new_game).to be_an_instance_of(Game)
end
it "should recognize that a new instance of board was created" do
expect(@new_game.board).to be_a(Board)
end
it "should recognize that a new instance of Computer Player was created" do
expect(@new_game.computer_player).to be_a(ComputerPlayer)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment