fix email length validation spec

This commit is contained in:
Rafael Schouten
2014-10-22 17:49:31 +11:00
parent 69614d6cf1
commit 069b9ce91d

View File

@@ -105,7 +105,7 @@ describe Enterprise do
subject { FactoryGirl.create(:distributor_enterprise, :address => FactoryGirl.create(:address)) }
it { should validate_presence_of(:name) }
it { should validate_presence_of(:email) }
it { should validate_length_of(:description, :maximum => 255) }
it { should ensure_length_of(:description).is_at_most(255) }
it "requires an owner" do
expect{