Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added failing test for email validation with non-ASCII characters.

  • Loading branch information...
commit d891c06c8739acd695e853edb006c51c7613cf5c 1 parent 919404d
@etienne authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/models/validatable_test.rb
View
4 test/models/validatable_test.rb
@@ -1,3 +1,5 @@
+# encoding: UTF-8
+
require 'test_helper'
class ValidatableTest < ActiveSupport::TestCase
@@ -28,7 +30,7 @@ class ValidatableTest < ActiveSupport::TestCase
assert user.invalid?
assert_not_equal 'is invalid', user.errors[:email].join
- %w(invalid_email_format 123 $$$ \(\) ).each do |email|
+ %w(invalid_email_format 123 $$$ \(\) ).each do |email|
user.email = email
assert user.invalid?, 'should be invalid with email ' << email
assert_equal 'is invalid', user.errors[:email].join
Please sign in to comment.
Something went wrong with that request. Please try again.