Sha256: 947bc5effb23588110686f9d8379ae70f789b9fd9077eef82f99663d61c86692

Contents?: true

Size: 714 Bytes

Versions: 14

Compression:

Stored size: 714 Bytes

Contents

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

describe BillForward::Account do
	describe '#new' do
		it "provides access to client" do
			host="http://localhost:8080/RestAPI/"
			environment="development"
			token="6f1f7465-fc16-4b9c-9ea0-f8c208a43ca6"
			dudclient = BillForward::Client.new(
			    :host => host,
			    :environment => environment,
			    :api_token => token
				)
			account = BillForward::Account.new(nil, dudclient)
			expect(account._client.host).to eq(host)
		end
	end
	describe '::resource_path' do
		it "points to expected endpoint" do
			resource_path = BillForward::Account.resource_path
			expect(resource_path.path).to eq("accounts")
		end
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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