|
152 | 152 |
|
153 | 153 | response = client.create(contact_data)
|
154 | 154 | expect(response).to have_attributes(email:)
|
155 |
| - expect(response.newly_created?).to eq(true) |
| 155 | + expect(response.newly_created?).to be true |
156 | 156 | end
|
157 | 157 |
|
158 | 158 | it 'raises error for invalid contact data' do
|
|
210 | 210 | response = client.upsert(contact_id, update_data)
|
211 | 211 |
|
212 | 212 | expect(response).to have_attributes(
|
213 |
| - id: contact_id, |
214 |
| - fields: include( |
215 |
| - last_name: 'Smith' |
216 |
| - ), |
217 |
| - action: 'updated' |
| 213 | + id: contact_id, |
| 214 | + action: 'updated', |
| 215 | + fields: include( |
| 216 | + last_name: 'Smith' |
218 | 217 | )
|
219 |
| - expect(response.newly_created?).to eq(false) |
| 218 | + ) |
| 219 | + expect(response.newly_created?).to be false |
220 | 220 | end
|
221 | 221 |
|
222 | 222 | it 'contact by email' do
|
|
231 | 231 | )
|
232 | 232 |
|
233 | 233 | response = client.upsert(email, update_data)
|
234 |
| - expect(response).to have_attributes( |
235 |
| - email: |
236 |
| - ) |
237 |
| - expect(response.newly_created?).to eq(false) |
| 234 | + expect(response).to have_attributes(email:) |
| 235 | + expect(response.newly_created?).to be false |
238 | 236 | end
|
239 | 237 | end
|
240 | 238 | # rubocop:enable RSpec/MultipleMemoizedHelpers
|
|
290 | 288 |
|
291 | 289 | response = client.add_to_lists(contact_id, list_ids)
|
292 | 290 | expect(response).to have_attributes(
|
293 |
| - id: contact_id, |
294 |
| - list_ids: include(1, 2, 3, 4, 5), |
295 |
| - action: 'updated' |
| 291 | + id: contact_id, |
| 292 | + list_ids: include(1, 2, 3, 4, 5), |
| 293 | + action: 'updated' |
296 | 294 | )
|
297 | 295 | end
|
298 | 296 |
|
|
308 | 306 | )
|
309 | 307 |
|
310 | 308 | response = client.add_to_lists(email, list_ids)
|
311 |
| - expect(response).to have_attributes( |
312 |
| - email: |
313 |
| - ) |
| 309 | + expect(response).to have_attributes(email:) |
314 | 310 | end
|
315 | 311 |
|
316 | 312 | it 'handles empty list_ids array' do
|
|
0 commit comments