all model tests now pass
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
require "test_helper"
|
||||
|
||||
class CredentialTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
test "email must be present" do
|
||||
@c = Credential.new
|
||||
assert !@c.save
|
||||
end
|
||||
|
||||
test "email must be valid" do
|
||||
@c = Credential.new
|
||||
@c.email = "not on your nelly"
|
||||
assert !@c.save
|
||||
end
|
||||
|
||||
test "email must be unique" do
|
||||
@c = Credential.new
|
||||
@c.email = "bob@example.net"
|
||||
assert !@c.save
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user