Sha256: 4991feb0bd1060d9a914e50074aaa385800621f216c6ed42058befe1de8bf8aa

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "spec_helper")

describe BillForward::PaymentMethod do
	before :all do
		@client = BillForwardTest::TEST_CLIENT
		BillForward::Client.default_client = @client
	end
	skip '::create' do
		context 'account exists' do
			context 'using credit' do
				before :all do
					@created_account = BillForward::Account.create
				end
				subject (:account) { @created_account }
				it 'creates a payment method' do
					payment_method = BillForward::PaymentMethod.new({
						'accountID' => account.id,
						'name' => 'Credit Notes',
						'description' => 'Pay using credit',
						# engines will link this to an invoice once paid, for the sake of refunds
						'linkID' => '',
						'gateway' => 'credit_note',
						'userEditable' => 0,
						'priority' => 100,
						'reusable' => 1
						})
					created_payment_method = BillForward::PaymentMethod::create(payment_method)

					expect(created_payment_method['@type']).to eq(BillForward::PaymentMethod.resource_path.entity_name)
				end
			end
		end
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bill_forward-2.2016.241 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-2.2016.227 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-2.2016.222 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-2.2016.209 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2016.117 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2016.101 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2016.26 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.321.1 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.321 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.299 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.217.1 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.217 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.186 spec/functional/bad_citizen/payment_method_spec.rb
bill_forward-1.2015.183 spec/functional/bad_citizen/payment_method_spec.rb