require 'helper' describe Bearcat::Client::Search do before do @client = Bearcat::Client.new(prefix:"http://canvas.instructure.com", token: "test_token") end it "returns search results for recipients" do stub_get(@client, "/api/v1/conversations/find_recipients?search=test").to_return(json_response("search_find_recipients.json")) results = @client.find_recipients(:search => 'test') results.first['name'].should == 'Test' results.first['id'].should == 9 end end