Sha256: 47d8bae68b0840fb32af9b5c4211a158abef77a1c5faa312ff1c0ed7e28f94e9

Contents?: true

Size: 559 Bytes

Versions: 18

Compression:

Stored size: 559 Bytes

Contents

describe Moneta::Api::Types::ConfirmTransactionBatchRequestType do
  describe '.add_transaction' do
    let(:request) { described_class.new }

    it 'should add transaction' do
      transaction = Moneta::Api::Types::ConfirmTransactionRequestType.new

      request.add_transaction(transaction)

      expect(request.transaction).to include transaction
    end

    it 'should not add with wrong type' do
      transaction = Moneta::Api::Types::Entity.new

      expect { request.add_transaction(transaction) }.to raise_exception TypeError
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.13.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.8 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.7 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.6 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.5 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.4 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.3 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.2 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.1 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.12.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.11.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.10.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.9.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
moneta-api-1.8.0 spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb