test: replace OpenStruct by model expected

This commit is contained in:
Colin Darie 2024-01-16 19:01:44 +01:00
parent e807752a78
commit a0e64151d5
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -38,7 +38,7 @@ RSpec.describe APIEntreprise::Job, type: :job do
def perform(error, etablissement)
@etablissement = etablissement
response = OpenStruct.new(
response = Typhoeus::Response.new(
effective_url: 'http://host.com/path',
code: '666',
body: 'body',