Skip to content

Commit

Permalink
Change applicant minimum age from 22 to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
fumimowdan committed Sep 22, 2023
1 parent 5381713 commit 3f4bcf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/steps/personal_details_step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def minimum_age
end

MAX_AGE = 80
MIN_AGE = 22
MIN_AGE = 21
private_constant :MAX_AGE, :MIN_AGE
end
4 changes: 2 additions & 2 deletions spec/steps/personal_details_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
describe "date_of_birth minimum age" do
let(:form) { build(:form, date_of_birth: age) }
let(:error) { step.errors.messages_for(:date_of_birth) }
let(:minimum_age) { 22 }
let(:minimum_age) { 21 }

before { step.valid? }

Expand Down Expand Up @@ -189,7 +189,7 @@

it "has MIN_AGE set to 22" do
min_age = described_class.send(:const_get, :MIN_AGE)
expect(min_age).to eq(22)
expect(min_age).to eq(21)
end
end

Expand Down

0 comments on commit 3f4bcf7

Please sign in to comment.