Skip to content

Commit

Permalink
Merge pull request #2526 from alphagov/amend-farming-grant-required-f…
Browse files Browse the repository at this point in the history
…ields

Change required fields in farming grant finder
  • Loading branch information
beccapearce authored Feb 15, 2024
2 parents b6b6a3f + 6b733d9 commit cebfef3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions app/models/farming_grant_option.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class FarmingGrantOption < Document
validates :open_or_closed, presence: true
validates :areas_of_interest, presence: true
validates :land_types, presence: true
validates :funding_types, presence: true
validates :grant_schemes, presence: true
validates :payment_types, presence: true
Expand Down
10 changes: 0 additions & 10 deletions spec/models/farming_grant_option_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
expect(farming_grant_option).not_to be_valid
end

it "is invalid if the areas of interest field is missing" do
farming_grant_option.areas_of_interest = nil
expect(farming_grant_option).not_to be_valid
end

it "is invalid if the land types field is missing" do
farming_grant_option.land_types = nil
expect(farming_grant_option).not_to be_valid
end

it "is invalid if the funding types field is missing" do
farming_grant_option.funding_types = nil
expect(farming_grant_option).not_to be_valid
Expand Down

0 comments on commit cebfef3

Please sign in to comment.