mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
test that email is validated
This commit is contained in:
@@ -85,6 +85,7 @@ describe Enterprise do
|
||||
describe "validations" do
|
||||
subject { FactoryGirl.create(:distributor_enterprise, :address => FactoryGirl.create(:address)) }
|
||||
it { should validate_presence_of(:name) }
|
||||
it { should validate_presence_of(:email) }
|
||||
|
||||
it "requires an owner" do
|
||||
expect{
|
||||
|
||||
Reference in New Issue
Block a user