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 def test [].each { |a| j} end