From a0e64151d51a5b846fd166b7c17891ee22808b7b Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 16 Jan 2024 19:01:44 +0100 Subject: [PATCH] test: replace OpenStruct by model expected --- spec/jobs/api_entreprise/job_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',