Created
July 30, 2014 16:16
-
-
Save pumpkincouture/23af7c92955d3550132d 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 | |
# assigns(:board).should be_kind_of(Board) | |
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 | |
it "should recognize that a new instance of Human Player was created" do | |
expect(@new_game.human_player).to be_a(HumanPlayer) | |
end | |
it "should recognize that a new instance of User Interface was created" do | |
expect(@new_game.ui).to be_a(UserInterface) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment