diff --git a/spec/conversations_spec.rb b/spec/conversations_spec.rb index aca7c15..21a72d6 100644 --- a/spec/conversations_spec.rb +++ b/spec/conversations_spec.rb @@ -616,7 +616,7 @@ stub_request(:delete, "#{base_url}/conversations/#{conversation_id}/links"). with( headers: headers). to_return(status: 204, body: nil) - frontapp.delete_tag!(conversation_id, data) + frontapp.remove_conversation_links!(conversation_id, data) end it "can remove conversation followers by id" do diff --git a/spec/links_spec.rb b/spec/links_spec.rb index f72e015..2f87e34 100644 --- a/spec/links_spec.rb +++ b/spec/links_spec.rb @@ -183,7 +183,7 @@ } } end - let(:create_link_response) { + let(:create_link_response) do %Q{ { "_links"=>{"self"=>"https://lending-home.api.frontapp.com/links/top_3ij8h"}, @@ -213,7 +213,7 @@ it "can get a link" do stub_request(:get, "#{base_url}/links/#{link_id}"). with( headers: headers). - to_return(status: 200, body: get_link_response) + to_return(status: 200, body: get_link_response.to_json) frontapp.get_link(link_id) end @@ -225,7 +225,8 @@ stub_request(:post, "#{base_url}/links"). with( body: data.to_json, headers: headers). - to_return(status: 200, body: ) + to_return(status: 200, body: '{}') + frontapp.create_link!(data) end it "can update a link name" do diff --git a/spec/topics_spec.rb b/spec/topics_spec.rb index 5a0f2f1..4f359b3 100644 --- a/spec/topics_spec.rb +++ b/spec/topics_spec.rb @@ -138,7 +138,7 @@ } it "can get all topic conversations" do - stub_request(:get, "#{base_url}/topics/#{topic_id}/conversations"). + stub_request(:get, "#{base_url}/links/#{topic_id}/conversations"). with( headers: headers). to_return(status: 200, body: topic_conversations_response) frontapp.get_topic_conversations(topic_id)