Sha256: 1cb7d637436400d214c8464e51a56ea90e943db25f530ae52caac3eaddd2ab5c

Contents?: true

Size: 322 Bytes

Versions: 8

Compression:

Stored size: 322 Bytes

Contents

require 'spec_helper'

describe CaseblocksAPI::GetCases do
    it "should call the API with a list of ids" do
        ids = ['1', '2']
        client = double('client')
        client.should_receive(:get).with('/case_blocks/cases', {query: {ids: ids}})
        CaseblocksAPI::GetCases.new(client).execute(ids)
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
caseblocks_api-0.2.20 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.19 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.18 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.17 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.16 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.15 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.14 spec/lib/caseblocks_api/get_cases_spec.rb
caseblocks_api-0.2.13 spec/lib/caseblocks_api/get_cases_spec.rb