Sha256: 8ef81a5e0bce685bdb9a28e838afbf6733dae5529f0ee7b8e3acc4f18b0c97cd

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

require_relative '../test_helper'

module PagarMe
  class ErrorTest < Test::Unit::TestCase
    should 'be able to handle single error messages' do
      assert_transaction_errors card_number: nil
    end

    should 'be able to handle multiple error messages' do
      assert_transaction_errors amount: 10, card_expiration_year: 12
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pagarme-2.1.2 test/pagarme/error_test.rb
pagarme-2.1.1 test/pagarme/error_test.rb
pagarme-2.1.0 test/pagarme/error_test.rb