Sha256: a60e4dff888340b60bc9e0886a7fadeb096e36375e8cc049c9539e15f9b89c4a

Contents?: true

Size: 494 Bytes

Versions: 146

Compression:

Stored size: 494 Bytes

Contents

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

Version data entries

146 entries across 146 versions & 1 rubygems

Version Path
bearcat-1.5.37 spec/bearcat/client/search_spec.rb
bearcat-1.5.36 spec/bearcat/client/search_spec.rb
bearcat-1.5.35 spec/bearcat/client/search_spec.rb
bearcat-1.5.34 spec/bearcat/client/search_spec.rb
bearcat-1.5.33 spec/bearcat/client/search_spec.rb
bearcat-1.5.32 spec/bearcat/client/search_spec.rb
bearcat-1.5.31 spec/bearcat/client/search_spec.rb
bearcat-1.5.30 spec/bearcat/client/search_spec.rb
bearcat-1.5.29 spec/bearcat/client/search_spec.rb
bearcat-1.5.28 spec/bearcat/client/search_spec.rb
bearcat-1.5.28.beta1 spec/bearcat/client/search_spec.rb
bearcat-1.5.26 spec/bearcat/client/search_spec.rb
bearcat-1.5.24 spec/bearcat/client/search_spec.rb
bearcat-1.5.23 spec/bearcat/client/search_spec.rb
bearcat-1.5.20 spec/bearcat/client/search_spec.rb
bearcat-1.5.19 spec/bearcat/client/search_spec.rb
bearcat-1.5.17 spec/bearcat/client/search_spec.rb
bearcat-1.5.16 spec/bearcat/client/search_spec.rb
bearcat-1.5.15 spec/bearcat/client/search_spec.rb
bearcat-1.5.14 spec/bearcat/client/search_spec.rb