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