mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Add contact spec (not working)
This commit is contained in:
parent
fcd4a6d6bf
commit
34c9faa778
9
spec/models/contact_spec.rb
Normal file
9
spec/models/contact_spec.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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) }
|
||||||
|
end
|
||||||
Loading…
Reference in New Issue
Block a user