diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-10-26 19:08:03 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-10-26 19:53:19 +0900 |
commit | 48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f (patch) | |
tree | 798673e57b633a27a386a118e7cdd8a3abf2a8dc /activerecord/test | |
parent | ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa (diff) | |
download | rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.tar.gz rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.tar.bz2 rails-48cc754a1070cfc4fefdd49475aea3fc9c1a5e2f.zip |
Use Regexp#match? rather than Regexp#===
Follow up to 99cf7558000090668b137085bfe6bcc06c4571dc.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb | 2 |
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 |