remove loose class in email validation test

This commit is contained in:
Mark Moser 2016-08-22 11:47:38 -05:00
parent 1aca2d98d3
commit 404555f674
2 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,5 @@
class EmailValidatable
include ActiveModel::Validations
attr_accessor :email
validates :email, email_format: true
end

View File

@ -1,11 +1,5 @@
require 'test_helper'
class EmailValidatable
include ActiveModel::Validations
attr_accessor :email
validates :email, email_format: true
end
class EmailFormatValidatorTest < ActiveSupport::TestCase
test "tld length" do
obj = EmailValidatable.new