Sha256: 45c102e7991fec8df3f3c60d8c279fe42067ba65bd23ea07adc3f7399fbd8bb3

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'


describe CaseblocksAPI::BucketResults do

  Given(:client){ FakeHttpParty.new }
  Given(:bucket_name){ "A Bucket" }
  Given(:bucket_result){ CaseblocksAPI::BucketResults.new(client) }
  When(:result){ bucket_result.execute(bucket_name)  }
  Then{ expect(result).to eql client.result }
  Then{ expect(client.requested_url).to eql '/case_blocks/buckets/a_bucket/results' }
  Then{ expect(client.params).to eql(query: {page_size: 100})}

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
caseblocks_api-0.2.20 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.19 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.18 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.17 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.16 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.15 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.14 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.13 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.12 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.11 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.9 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.8 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.6 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.5 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.4 spec/lib/caseblocks_api/bucket_results_spec.rb
caseblocks_api-0.2.3 spec/lib/caseblocks_api/bucket_results_spec.rb