Sha256: 8f2629c68b49840392edcbb7965f35ddddf526f83653d2775034dbe92e575cc6
Contents?: true
Size: 597 Bytes
Versions: 8
Compression:
Stored size: 597 Bytes
Contents
require "spec_helper" describe "Intercom::Team" do let(:client) { Intercom::Client.new(token: 'token') } it "returns a CollectionProxy for all without making any requests" do client.expects(:execute_request).never all = client.teams.all _(all).must_be_instance_of(Intercom::ClientCollectionProxy) end it 'gets an team list' do client.expects(:get).with("/teams", {}).returns(test_team_list) client.teams.all.each { |t| } end it "gets an team" do client.expects(:get).with("/teams/1234", {}).returns(test_team) client.teams.find(:id => "1234") end end
Version data entries
8 entries across 8 versions & 1 rubygems