Skip to content

Commit

Permalink
Move rejection reasons into the policy
Browse files Browse the repository at this point in the history
Different policies have different rejection reasons. While the rejection
reasons for ECP, LUP, and TSLR are similar (ECP has an extra reason),
future policies (specifically IRP) have different rejection reasons.

This commit moves the available rejection reasons into a constant in the
policy, so new policies can just add their reasons there and update the
locales file.
  • Loading branch information
rjlynch committed Aug 1, 2024
1 parent 23ebcd5 commit 5eecf0b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/features/admin_view_claim_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require "rails_helper"

RSpec.feature "Admin view claim" do
Policies.all.each { |policy| it_behaves_like "Admin View Claim Feature", policy }
Policies.all.each do |policy|
# FIXME RL temp stub out this test until we've added rejection reasons for
# IRP
unless policy == Policies::InternationalRelocationPayments
it_behaves_like "Admin View Claim Feature", policy
end
end
end

0 comments on commit 5eecf0b

Please sign in to comment.