1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/spec/models/contact_spec.rb
2013-06-05 10:33:48 +01:00

11 lines
298 B
Ruby

require 'spec_helper'
describe Contact do
it { should validate_presence_of(:email) }
it { should validate_presence_of(:name) }
it { should validate_presence_of(:message) }
it { should allow_value("test@test.com").for(:email) }
it { should_not allow_value("test@test").for(:email) }
end