Sha256: d097ba58669b5ab5330d6068de96172d05fbac9a026a050b716e8865273d8779

Contents?: true

Size: 863 Bytes

Versions: 15

Compression:

Stored size: 863 Bytes

Contents

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

describe BillForward::InvoiceRecalculationAmendment do
	before :all do
		@client = BillForwardTest::TEST_CLIENT
		BillForward::Client.default_client = @client

		# Existing invoice supplied from test constants, as we cannot create invoices ourselves
		@invoice_id = BillForwardTest::USUAL_INVOICE_ID
	end
	describe '#new' do
		before :all do
			invoice = BillForward::Invoice.get_by_id @invoice_id
			@invoice = invoice
		end
		subject (:invoice) { @invoice }
		it "can be created" do
			amendment = BillForward::InvoiceRecalculationAmendment.new({
					'subscriptionID' => invoice.subscriptionID,
					'invoiceID' => invoice.id,
					'newInvoiceState' => 'Paid'
				})

			created_amendment = BillForward::InvoiceRecalculationAmendment.create(amendment)
		end
	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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