test that email is validated

This commit is contained in:
Rafael Schouten
2014-10-03 17:32:04 +10:00
parent c088c47a49
commit a0494b136f

View File

@@ -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{