Skip to content

Commit

Permalink
Write first turn test RED
Browse files Browse the repository at this point in the history
  • Loading branch information
MeriFW committed May 11, 2017
1 parent a63b8e7 commit 98bc59c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/game_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
expect(some_player.cards_in_deck?(some_wrong_value)).to be(false)
end

it 'prepares the first turn' do
some_player = Player.new
some_other_player = Player.new
game = Game.new([some_player, some_other_player])

game.start

expect(some_player.cards_in_hand?(4)).to be(true)
expect(some_player.cards_in_deck?(initial_cards_in_deck - 4)).to be(true)
expect(some_player.available_mana_slots?(1)).to be(true)
expect(some_player.remaining_mana?(1)).to be(true)
end

def initial_cards_in_deck
20
end
Expand Down
3 changes: 3 additions & 0 deletions system/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ def initialize(players)
deal_decks
end

def start
end

private

def deal_decks
Expand Down

0 comments on commit 98bc59c

Please sign in to comment.