We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b62b5fd + bb23014 commit 3fbf2caCopy full SHA for 3fbf2ca
2 files changed
lib/intercom/service/conversation.rb
@@ -58,7 +58,7 @@ def assign(reply_data)
58
59
def run_assignment_rules(id)
60
collection_name = Utils.resource_class_to_collection_name(collection_class)
61
- response = @client.post("/#{collection_name}/#{id}/run_assignment_rules")
+ response = @client.post("/#{collection_name}/#{id}/run_assignment_rules", {})
62
collection_class.new.from_response(response)
63
end
64
spec/unit/intercom/conversation_spec.rb
@@ -54,7 +54,7 @@
54
55
56
it 'runs assignment rules on a conversation' do
57
- client.expects(:post).with('/conversations/147/run_assignment_rules').returns(test_conversation)
+ client.expects(:post).with('/conversations/147/run_assignment_rules', {}).returns(test_conversation)
client.conversations.run_assignment_rules('147')
0 commit comments