From a2d0349e5fbbaf17d6f6aec5d76b749c16995583 Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Mon, 29 Jul 2024 15:03:48 +0200 Subject: [PATCH] so its aber --- spec/helpers/person_helper_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helpers/person_helper_spec.rb b/spec/helpers/person_helper_spec.rb index d832ed96b..d05ea3c89 100644 --- a/spec/helpers/person_helper_spec.rb +++ b/spec/helpers/person_helper_spec.rb @@ -4,7 +4,7 @@ describe '#fetch_ptime_or_skills_data' do it 'should send request to ptime api' do - allow(helper).to receive(:ptime_available?).and_return(true) + allow(Skills).to receive(:ptime_available?).and_return(true) skills_people = helper.fetch_ptime_or_skills_data expected = [ ["Longmax Smith", "/people/new?ptime_employee_id=33"], @@ -15,7 +15,7 @@ end it 'should return people from skills database if last request was right now' do - allow(helper).to receive(:ptime_available?).and_return(false) + allow(Skills).to receive(:ptime_available?).and_return(false) skills_people = helper.fetch_ptime_or_skills_data expected = [