Skip to content

Commit

Permalink
Merge pull request #22 from darrencauthon/shuffle_tests
Browse files Browse the repository at this point in the history
Shuffle tests
  • Loading branch information
jdan committed Jul 25, 2014
2 parents 9155857 + fedc253 commit d6593be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/rubycards/deck_spec.rb
Expand Up @@ -39,6 +39,12 @@
deck.cards.should_not == cards_before_shuffling
end

it "should should shuffle the internal cards array" do
cards_before_shuffling = deck.cards.dup
expect(deck.instance_variable_get("@cards")).to receive(:shuffle!)
deck.shuffle!
end

it 'returns itself' do
should == deck.shuffle!
end
Expand Down

0 comments on commit d6593be

Please sign in to comment.