Commit d86eafca by Đường Sỹ Hoàng

Removed space

parent 28743142
...@@ -2,8 +2,7 @@ require "test_helper" ...@@ -2,8 +2,7 @@ require "test_helper"
class UserTest < ActiveSupport::TestCase class UserTest < ActiveSupport::TestCase
def setup def setup
@user = User.new(name: "Example User", email: "user@example.com", @user = User.new(name: "Example User", email: "user@example.com", password: "foobar", password_confirmation: "foobar")
password: "foobar", password_confirmation: "foobar")
end end
test "should be valid" do test "should be valid" do
...@@ -16,7 +15,7 @@ class UserTest < ActiveSupport::TestCase ...@@ -16,7 +15,7 @@ class UserTest < ActiveSupport::TestCase
end end
test "email should be present" do test "email should be present" do
@user.email = " " @user.email = ""
assert_not @user.valid? assert_not @user.valid?
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment