diff --git a/spec/models/contact_spec.rb b/spec/models/contact_spec.rb new file mode 100644 index 0000000..fc5c2c6 --- /dev/null +++ b/spec/models/contact_spec.rb @@ -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