test: replace OpenStruct by model expected
This commit is contained in:
parent
e807752a78
commit
a0e64151d5
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ RSpec.describe APIEntreprise::Job, type: :job do
|
||||||
def perform(error, etablissement)
|
def perform(error, etablissement)
|
||||||
@etablissement = etablissement
|
@etablissement = etablissement
|
||||||
|
|
||||||
response = OpenStruct.new(
|
response = Typhoeus::Response.new(
|
||||||
effective_url: 'http://host.com/path',
|
effective_url: 'http://host.com/path',
|
||||||
code: '666',
|
code: '666',
|
||||||
body: 'body',
|
body: 'body',
|
||||||
|
|
Loading…
Reference in a new issue