Skip to content

Commit

Permalink
fix: remove comments, adjust expected error for no contact info given
Browse files Browse the repository at this point in the history
  • Loading branch information
algibson1 committed Oct 22, 2023
1 parent fc631b8 commit a048dd7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/models/organization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
RSpec.describe Organization, type: :model do
describe "validations" do
it { should validate_presence_of(:name) }
# it { should validate_presence_of(:contact_phone) }
# it { should validate_presence_of(:contact_email) }
# it { should validate_presence_of(:street_address) }
# it { should validate_presence_of(:website) }
it { should validate_presence_of(:city) }
it { should validate_presence_of(:state) }
it { should validate_presence_of(:zip) }
Expand All @@ -24,7 +20,7 @@
expect(org3.save).to eq(true)

expect(org4.save).to eq(false)
expect(org4.errors.full_messages.to_sentence).to eq("Please include either a phone number, email address, and/or street address")
expect(org4.errors.full_messages.to_sentence).to eq("Please include either a phone number, email address, and/or street address and Please share at least one form of contact so volunteers may get in touch with you.")
end

it "validates at least one contact method is shared" do
Expand Down

0 comments on commit a048dd7

Please sign in to comment.