Last active
August 29, 2015 14:04
-
-
Save pumpkincouture/9aa94eb206d893bb8929 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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