Sha256: e53c3be987faec0700ade7d4a9e4f5f94b99c4c6d7008d1fe0d7f0f52a214825

Contents?: true

Size: 672 Bytes

Versions: 5

Compression:

Stored size: 672 Bytes

Contents

require 'helper'

module Mollie
  module API
    module Resource
      class Customers
        class PaymentsTest < Test::Unit::TestCase
          def test_resource_object
            assert_equal Object::Payment, Payments.new(nil).resource_object
          end

          def test_resource_name_and_with
            payments = Payments.new(nil).with("customer-id")
            assert_equal "customers/customer-id/payments", payments.resource_name

            payments = Payments.new(nil).with(Object::Customer.new(id: "customer-id"))
            assert_equal "customers/customer-id/payments", payments.resource_name
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mollie-api-ruby-2.2.1 test/mollie/api/resource/customers/payments_test.rb
mollie-api-ruby-2.2.0 test/mollie/api/resource/customers/payments_test.rb
mollie-api-ruby-2.1.0 test/mollie/api/resource/customers/payments_test.rb
mollie-api-ruby-2.0.1 test/mollie/api/resource/customers/payments_test.rb
mollie-api-ruby-2.0.0 test/mollie/api/resource/customers/payments_test.rb