File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 11require 'intercom/service/base_service'
22require 'intercom/api_operations/save'
33require 'intercom/api_operations/list'
4- require 'intercom/api_operations/find'
54require 'intercom/api_operations/find_all'
65
76module Intercom
87 module Service
98 class Tag < BaseService
109 include ApiOperations ::Save
1110 include ApiOperations ::List
12- include ApiOperations ::Find
1311 include ApiOperations ::FindAll
1412 include ApiOperations ::Delete
1513
Original file line number Diff line number Diff line change 33describe "Intercom::Tag" do
44 let ( :client ) { Intercom ::Client . new ( app_id : 'app_id' , api_key : 'api_key' ) }
55
6- it "gets a tag" do
7- client . expects ( :get ) . with ( "/tags" , { :name => "Test Tag" } ) . returns ( test_tag )
8- tag = client . tags . find ( :name => "Test Tag" )
9- tag . name . must_equal "Test Tag"
10- end
11-
126 it "creates a tag" do
137 client . expects ( :post ) . with ( "/tags" , { 'name' => "Test Tag" } ) . returns ( test_tag )
148 tag = client . tags . create ( :name => "Test Tag" )
You can’t perform that action at this time.
0 commit comments