diff --git a/spec/jobs/api_entreprise/job_spec.rb b/spec/jobs/api_entreprise/job_spec.rb index 4c1cdc690..22ca80f9d 100644 --- a/spec/jobs/api_entreprise/job_spec.rb +++ b/spec/jobs/api_entreprise/job_spec.rb @@ -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',