Skip to content

Commit

Permalink
increasing the value of procurement ammount
Browse files Browse the repository at this point in the history
  • Loading branch information
DevMagnataur committed Sep 30, 2024
1 parent 9e41542 commit ed4f90b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/locales/validation/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ en:
rules:
procurement_amount:
invalid: Enter a valid number
too_large: The amount cannot be larger than 9,999,999.99
too_large: The amount cannot be larger than 99,999,999.99
special_requirements_choice:
missing: Select whether you want to tell us about any special requirements
special_requirements:
Expand All @@ -184,7 +184,7 @@ en:
group: Select whether this is the Group or Trust you're buying for
procurement_amount:
invalid: Enter a valid number
too_large: The amount cannot be larger than 9,999,999.99
too_large: The amount cannot be larger than 99,999,999.99

support_request:
rules:
Expand Down
4 changes: 2 additions & 2 deletions spec/forms/specify/request_form_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
end
end

context "and it is greater than 9,999,999.99 while the procurement_choice is yes" do
context "and it is greater than 99,999,999.99 while the procurement_choice is yes" do
subject(:schema) { described_class.new.call(procurement_amount: "10000000.00", procurement_choice: "yes") }

it "raises a validation error" do
expect(schema.errors.messages.size).to eq 1
expect(schema.errors.messages[0].to_s).to eq "The amount cannot be larger than 9,999,999.99"
expect(schema.errors.messages[0].to_s).to eq "The amount cannot be larger than 99,999,999.99"
end
end

Expand Down

0 comments on commit ed4f90b

Please sign in to comment.