Skip to content

Commit ed52b49

Browse files
committed
fixed small issues in contacts
1 parent 9871da8 commit ed52b49

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/mailtrap/api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Mailtrap
24
module API
35
private

spec/mailtrap/contact_lists_api_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# frozen_string_literal: true
2+
13
RSpec.describe Mailtrap::ContactListsAPI do
24
let(:client) { described_class.new('1111111', Mailtrap::Client.new(api_key: 'correct-api-key')) }
35
let(:base_url) { 'https://mailtrap.io/api/accounts/1111111' }
46

5-
describe '#' do
7+
describe '#list' do
68
let(:expected_response) do
79
[
810
{ 'id' => 1, 'name' => 'List 1' },
@@ -150,7 +152,7 @@
150152
.to_return(status: 204)
151153

152154
response = client.delete(contact_list_id)
153-
expect(response).to true
155+
expect(response).to be true
154156
end
155157

156158
it 'raises error when contact list not found' do

spec/mailtrap/contacts_api_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@
209209
headers: { 'Content-Type' => 'application/json' }
210210
)
211211
response = client.update(contact_id, update_data)
212-
pp response
213212

214213
expect(response).to have_attributes(
215214
data: have_attributes(

0 commit comments

Comments
 (0)