Added spec for valid User#email validation

This commit is contained in:
Sebastian 2011-06-01 10:25:31 +02:00
parent de9e41a331
commit cd404b9210

View file

@ -113,6 +113,11 @@ describe User do
alice.email = eve.email
alice.should_not be_valid
end
it "requires a vaild email address" do
alice.email = "somebody@anywhere"
alice.should_not be_valid
end
end
describe "of language" do