diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2011-10-16 14:29:06 +0530 |
---|---|---|
committer | Vishnu Atrai <me@vishnuatrai.com> | 2011-10-16 14:29:06 +0530 |
commit | 9210458547bbf5e79aa650e15226a0d5c58ea6c7 (patch) | |
tree | 4e265a5af01ef1476201c135673a825efdca2acd | |
parent | 098c95abcb2b101bde0d55ddd5e348fda0ec8f49 (diff) | |
download | rails-9210458547bbf5e79aa650e15226a0d5c58ea6c7.tar.gz rails-9210458547bbf5e79aa650e15226a0d5c58ea6c7.tar.bz2 rails-9210458547bbf5e79aa650e15226a0d5c58ea6c7.zip |
fix to remove warning in test cases
-rw-r--r-- | activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb b/activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb index 5ffd886dab..97adb6b297 100644 --- a/activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb +++ b/activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb @@ -21,7 +21,7 @@ class MysqlCaseSensitivityTest < ActiveRecord::TestCase CollationTest.create!(:string_ci_column => 'A') invalid = CollationTest.new(:string_ci_column => 'a') queries = assert_sql { invalid.save } - ci_uniqueness_query = queries.detect { |q| q.match /string_ci_column/ } + ci_uniqueness_query = queries.detect { |q| q.match(/string_ci_column/) } assert_no_match(/lower/i, ci_uniqueness_query) end @@ -29,7 +29,7 @@ class MysqlCaseSensitivityTest < ActiveRecord::TestCase CollationTest.create!(:string_cs_column => 'A') invalid = CollationTest.new(:string_cs_column => 'a') queries = assert_sql { invalid.save } - cs_uniqueness_query = queries.detect { |q| q.match /string_cs_column/ } + cs_uniqueness_query = queries.detect { |q| q.match(/string_cs_column/) } assert_match(/lower/i, cs_uniqueness_query) end end |