Soc/test/models/user_test.rb

10 lines
192 B
Ruby

require "test_helper"
class UserTest < ActiveSupport::TestCase
test "email must resemble an email" do
user = users(:user)
user.email = "foobar"
assert_not user.valid?
end
end