Skip to content

Commit

Permalink
Fix test failing due to api migrated now
Browse files Browse the repository at this point in the history
  • Loading branch information
Isalafont committed Oct 10, 2024
1 parent 1950683 commit 53a955f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/spec/controllers/enrollments/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
end

context "with api particulier as target api" do
let(:target_api) { "api_particulier" }
let(:target_api) { "aidants_connect" }

it { is_expected.to have_http_status(:ok) }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
create(:event, :update, enrollment: enrollment, created_at: 2.months.ago, updated_at: 2.months.ago)
create(:event, :submit, enrollment: enrollment, created_at: 2.months.ago, updated_at: 2.months.ago)

enrollment = create(:enrollment, :api_particulier, :changes_requested, created_at: 60.days.ago, updated_at: 25.days.ago)
enrollment = create(:enrollment, :aidants_connect, :changes_requested, created_at: 60.days.ago, updated_at: 25.days.ago)
create(:event, :update, enrollment: enrollment, created_at: 40.days.ago, updated_at: 40.days.ago)
create(:event, :reminder_before_archive, enrollment: enrollment, created_at: 25.days.ago, updated_at: 25.days.ago)

enrollment = create(:enrollment, :hubee_portail, :changes_requested, created_at: 90.days.ago, updated_at: 20.days.ago)
enrollment = create(:enrollment, :api_sfip_sandbox, :changes_requested, created_at: 90.days.ago, updated_at: 20.days.ago)
create(:event, :update, enrollment: enrollment, created_at: 40.days.ago, updated_at: 40.days.ago)
create(:event, :reminder_before_archive, enrollment: enrollment, created_at: 20.days.ago, updated_at: 20.days.ago)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Timecop.return
end

let!(:enrollment) { create(:enrollment, :api_particulier, :changes_requested, created_at: 60.days.ago, updated_at: 25.days.ago) }
let!(:enrollment) { create(:enrollment, :aidants_connect, :changes_requested, created_at: 60.days.ago, updated_at: 25.days.ago) }
let!(:event) { create(:event, :reminder_before_archive, enrollment: enrollment, created_at: 25.days.ago, updated_at: 25.days.ago) }

context "When there is enrollments to archive" do
Expand Down

0 comments on commit 53a955f

Please sign in to comment.