diff --git a/spec/rubycards/deck_spec.rb b/spec/rubycards/deck_spec.rb index 44c209a..0c888e5 100644 --- a/spec/rubycards/deck_spec.rb +++ b/spec/rubycards/deck_spec.rb @@ -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