Sha256: d9b91705dba825482d14bf48d368a519ec2d564f7d8dd234e825f6378ef62059
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
require_relative '../../test_helper' module PagarMe class CardTest < Test::Unit::TestCase should 'be able to create' do card = PagarMe::Card.create card_params assert card.id assert_equal card.first_digits, '490172' assert_equal card.last_digits, '4448' end should 'be able to find by id' do card = PagarMe::Card.create card_params found_card = PagarMe::Card.find_by_id card.id assert_equal card.id, found_card.id assert_equal card.first_digits, found_card.first_digits assert_equal card.last_digits, found_card.last_digits end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pagarme-2.1.2 | test/pagarme/resources/card_test.rb |
pagarme-2.1.1 | test/pagarme/resources/card_test.rb |
pagarme-2.1.0 | test/pagarme/resources/card_test.rb |