aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-10-27 09:31:47 +0200
committerGitHub <noreply@github.com>2016-10-27 09:31:47 +0200
commit1aa9d3903d16e623837bf8ff7deefc865fc24502 (patch)
treeedea51a20f44ad1bdd1d3f72d57ac86cf98b1e61 /activerecord/test/cases
parent56832e791f3ec3e586cf049c6408c7a183fdd3a1 (diff)
parent48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f (diff)
downloadrails-1aa9d3903d16e623837bf8ff7deefc865fc24502.tar.gz
rails-1aa9d3903d16e623837bf8ff7deefc865fc24502.tar.bz2
rails-1aa9d3903d16e623837bf8ff7deefc865fc24502.zip
Merge pull request #26899 from kamipo/use_regex_match
Use Regexp#match? rather than Regexp#===
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
index 3df11ce11b..452f8d5ae8 100644
--- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
@@ -50,7 +50,7 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase
t.unsigned_decimal :unsigned_decimal_t, precision: 10, scale: 2
end
- @connection.columns("unsigned_types").select { |c| /^unsigned_/ === c.name }.each do |column|
+ @connection.columns("unsigned_types").select { |c| /^unsigned_/.match?(c.name) }.each do |column|
assert column.unsigned?
end
end