mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
13 lines
375 B
Ruby
13 lines
375 B
Ruby
require "spec_helper"
|
|
|
|
describe Contact do
|
|
it { is_expected.to validate_presence_of(:email) }
|
|
it { is_expected.to validate_presence_of(:name) }
|
|
it { is_expected.to validate_presence_of(:message) }
|
|
|
|
it { is_expected.to allow_value("test@test.com").for(:email) }
|
|
it { is_expected.not_to allow_value("test@test").for(:email) }
|
|
|
|
let(:contact) { build(:contact) }
|
|
end
|