Sha256: 41390b50e4d51269d20ca56c056345e85a3bf3fa14f35fc3c5f50579a966fd88

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 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

1 entries across 1 versions & 1 rubygems

Version Path
bill_forward-1.2014.296 spec/syntax/account_spec.rb