|
11 | 11 | request = described_class.new.tap do |req|
|
12 | 12 | req.upsert(email: '[email protected]')
|
13 | 13 | .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 }) |
16 | 16 | end
|
17 | 17 | expect(request.to_a).to contain_exactly(
|
18 | 18 | hash_including(email: '[email protected]', fields: {}),
|
19 | 19 | 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 }) |
21 | 21 | )
|
22 | 22 | end
|
23 | 23 | end
|
|
37 | 37 | req.add_to_lists(email: '[email protected]', list_ids: [1])
|
38 | 38 | .add_to_lists(email: '[email protected]', list_ids: [1])
|
39 | 39 | .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]) |
42 | 42 | end
|
43 | 43 | expect(request.to_a).to contain_exactly(
|
44 | 44 | hash_including(email: '[email protected]', list_ids_included: [1]),
|
45 | 45 | 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]) |
47 | 47 | )
|
48 | 48 | end
|
49 | 49 | end
|
|
65 | 65 | req.remove_from_lists(email: '[email protected]', list_ids: [1])
|
66 | 66 | .remove_from_lists(email: '[email protected]', list_ids: [1])
|
67 | 67 | .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]) |
70 | 70 | end
|
71 | 71 | expect(request.to_a).to contain_exactly(
|
72 | 72 | hash_including(email: '[email protected]', list_ids_excluded: [1]),
|
73 | 73 | 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]) |
75 | 75 | )
|
76 | 76 | end
|
77 | 77 | end
|
|
0 commit comments