Skip to content

Commit 829adf1

Browse files
committed
Merge pull request #232 from intercom/RK/remove_tag_find
Remove find from tag as we do not actually support this operation on …
2 parents dbed695 + 2c7f967 commit 829adf1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/intercom/service/tag.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
require 'intercom/service/base_service'
22
require 'intercom/api_operations/save'
33
require 'intercom/api_operations/list'
4-
require 'intercom/api_operations/find'
54
require 'intercom/api_operations/find_all'
65

76
module 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

spec/unit/intercom/tag_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
describe "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")

0 commit comments

Comments
 (0)