Skip to content

Commit 618e7e3

Browse files
committed
Fix typos
1 parent 87d118d commit 618e7e3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/mailtrap/contact_import.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Mailtrap
44
# Data Transfer Object for Contact Import
5-
# @attr_reader id [String] The contact import ID
5+
# @attr_reader id [Integer] The contact import ID
66
# @attr_reader status [String] The status of the import (created, started, finished, failed)
77
# @attr_reader created_contacts_count [Integer, nil] Number of contacts created in this import
88
# @attr_reader updated_contacts_count [Integer, nil] Number of contacts updated in this import

lib/mailtrap/contact_imports_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get(import_id)
4040
#
4141
# @param contacts [Mailtrap::ContactsImportRequest, Array<Hash>] The contacts import request
4242
#
43-
# @return [ContactImport] Created contact list object
43+
# @return [ContactImport] Created contact import object
4444
# @!macro api_errors
4545
# @raise [ArgumentError] If invalid options are provided
4646
def create(contacts)

spec/mailtrap/contacts_import_request_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
request = described_class.new.tap do |req|
1212
req.upsert(email: '[email protected]')
1313
.upsert(email: '[email protected]', fields: { first_name: 'John', last_name: 'Doe' })
14-
.upsert(email: 'trhee@example.com', fields: { first_name: 'Jack' })
15-
.upsert(email: 'trhee@example.com', fields: { first_name: 'Joe', last_name: 'Blow', age: 33 })
14+
.upsert(email: 'three@example.com', fields: { first_name: 'Jack' })
15+
.upsert(email: 'three@example.com', fields: { first_name: 'Joe', last_name: 'Blow', age: 33 })
1616
end
1717
expect(request.to_a).to contain_exactly(
1818
hash_including(email: '[email protected]', fields: {}),
1919
hash_including(email: '[email protected]', fields: { first_name: 'John', last_name: 'Doe' }),
20-
hash_including(email: 'trhee@example.com', fields: { first_name: 'Joe', last_name: 'Blow', age: 33 })
20+
hash_including(email: 'three@example.com', fields: { first_name: 'Joe', last_name: 'Blow', age: 33 })
2121
)
2222
end
2323
end
@@ -37,13 +37,13 @@
3737
req.add_to_lists(email: '[email protected]', list_ids: [1])
3838
.add_to_lists(email: '[email protected]', list_ids: [1])
3939
.add_to_lists(email: '[email protected]', list_ids: [2])
40-
.add_to_lists(email: 'trhee@example.com', list_ids: [1])
41-
.add_to_lists(email: 'trhee@example.com', list_ids: [1, 2])
40+
.add_to_lists(email: 'three@example.com', list_ids: [1])
41+
.add_to_lists(email: 'three@example.com', list_ids: [1, 2])
4242
end
4343
expect(request.to_a).to contain_exactly(
4444
hash_including(email: '[email protected]', list_ids_included: [1]),
4545
hash_including(email: '[email protected]', list_ids_included: [1, 2]),
46-
hash_including(email: 'trhee@example.com', list_ids_included: [1, 2])
46+
hash_including(email: 'three@example.com', list_ids_included: [1, 2])
4747
)
4848
end
4949
end
@@ -65,13 +65,13 @@
6565
req.remove_from_lists(email: '[email protected]', list_ids: [1])
6666
.remove_from_lists(email: '[email protected]', list_ids: [1])
6767
.remove_from_lists(email: '[email protected]', list_ids: [2])
68-
.remove_from_lists(email: 'trhee@example.com', list_ids: [1])
69-
.remove_from_lists(email: 'trhee@example.com', list_ids: [1, 2])
68+
.remove_from_lists(email: 'three@example.com', list_ids: [1])
69+
.remove_from_lists(email: 'three@example.com', list_ids: [1, 2])
7070
end
7171
expect(request.to_a).to contain_exactly(
7272
hash_including(email: '[email protected]', list_ids_excluded: [1]),
7373
hash_including(email: '[email protected]', list_ids_excluded: [1, 2]),
74-
hash_including(email: 'trhee@example.com', list_ids_excluded: [1, 2])
74+
hash_including(email: 'three@example.com', list_ids_excluded: [1, 2])
7575
)
7676
end
7777
end

0 commit comments

Comments
 (0)