Created
August 27, 2014 22:06
-
-
Save bltavares/ddfd308e2ef46eefc661 to your computer and use it in GitHub Desktop.
Truco
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 'minitest/autorun' | |
require 'truco' | |
include Truco | |
describe Truco::Card do | |
it 'has a suit' do | |
card = Card.new(1, Suits[:hearts]) | |
assert_equal(card.suit, Suits[:hearts]) | |
end | |
it 'has a value' do | |
card = Card.new(1, Suits[:hearts]) | |
assert_equal(card.value, 1) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment