Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Valida formato do email

  • Loading branch information...
commit 2a2ff0db26d3dd853658646f483342fa40925d28 1 parent a7401f0
@elomar authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/models/usuario_spec.rb
View
9 spec/models/usuario_spec.rb
@@ -43,4 +43,13 @@
end
end
+ describe "quando email já está em uso" do
+ before do
+ usuario_mesmo_email = @usuario.dup
+ usuario_mesmo_email.save
+ end
+
+ it { should_not be_valid }
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.