Skip to content

Commit

Permalink
added tests for FrenchDeck
Browse files Browse the repository at this point in the history
  • Loading branch information
johndbritton committed Apr 8, 2011
1 parent 911ccfd commit ecd300e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/french_deck_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
#create a french (standard) deck
before :all do
@french = Cardshark::FrenchDeck.new
@french_with_jokers = Cardshark::FrenchDeck.new(:include_jokers => true)
end

it 'should contain 52 cards' do
@french.size.should == 52
end

it 'should contain 54 cards' do
@french_with_jokers.size == 54
end
end

0 comments on commit ecd300e

Please sign in to comment.