1
0
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:
Dan Barber 2013-06-04 08:42:56 +01:00
parent fcd4a6d6bf
commit 34c9faa778

View 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