Added spec for valid User#email validation
This commit is contained in:
parent
de9e41a331
commit
cd404b9210
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue