Sha256: 7b16209e127bc9e3a9e73dda08fd146c1b696e97b710fa79a6e659ace2dd0877
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' describe CaseblocksAPI::FindByProperty do Given(:client){ FakeHttpParty.new } Given(:property_name){"order_number"} Given(:value){ "2000391" } Given(:case_type){'tyre_shopper_order'} Given(:find_by_property){ CaseblocksAPI::FindByProperty.new(client) } When(:result){ find_by_property.execute(case_type, property_name, value) } Then{ expect(result).to eql client.result} Then{ expect(client.requested_url).to eql '/case_blocks/tyre_shopper_order' } Then{ expect(client.params).to eql({query: {search: true, property: property_name, value: value}}) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caseblocks_api-0.2.2 | spec/lib/caseblocks_api/find_case_by_property_spec.rb |