remove loose class in email validation test
This commit is contained in:
parent
1aca2d98d3
commit
404555f674
5
test/test_helpers/email_validatable.rb
Normal file
5
test/test_helpers/email_validatable.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class EmailValidatable
|
||||
include ActiveModel::Validations
|
||||
attr_accessor :email
|
||||
validates :email, email_format: true
|
||||
end
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user