diff --git a/app/models/poll/voter.rb b/app/models/poll/voter.rb index 1cb8083c2..8fe612151 100644 --- a/app/models/poll/voter.rb +++ b/app/models/poll/voter.rb @@ -8,9 +8,6 @@ class Poll validates :poll_id, presence: true validates :user_id, presence: true - validates :geozone_id, presence: true - validates :gender, presence: true - validates :age, presence: true validates :document_number, presence: true, uniqueness: { scope: [:poll_id, :document_type], message: :has_voted } diff --git a/spec/models/poll/voter_spec.rb b/spec/models/poll/voter_spec.rb index 0770c5654..752ac5bbc 100644 --- a/spec/models/poll/voter_spec.rb +++ b/spec/models/poll/voter_spec.rb @@ -23,11 +23,6 @@ describe :voter do expect(voter).to_not be_valid end - it "should not be valid without a geozone" do - voter.user.geozone = nil - expect(voter).to_not be_valid - end - it "should be valid if has not voted" do voter = build(:poll_voter, :valid_document)