Sha256: 242e8e23e29b78dd01483aa59a45f77f87f5871d4f86ed3b569a0c9333306de3
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper") describe BillForward::Account do before :all do @client = BillForwardTest::TEST_CLIENT BillForward::Client.default_client = @client end describe '::get_all' do it 'raises permissions error' do # 'admin' privilege is insufficient to see other organisations expect{BillForward::Organisation::get_all}.to raise_error(BillForward::ApiError, /500/) # Expected error: # ==== # 500 API Error. # Type: PermissionsError # Message: Access is denied # ==== end end describe '::get_mine' do it "should find organisations" do organisations = BillForward::Organisation.get_mine organisations_first = organisations.first expect(organisations_first['@type']).to eq(BillForward::Organisation.resource_path.entity_name) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bill_forward-1.2015.183 | spec/functional/organisation_spec.rb |