diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-16 07:43:54 -0700 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-16 07:43:54 -0700 |
commit | f10d62c4bf0be035eafd3f38a9e50550e8060b21 (patch) | |
tree | 4e265a5af01ef1476201c135673a825efdca2acd | |
parent | 098c95abcb2b101bde0d55ddd5e348fda0ec8f49 (diff) | |
parent | 9210458547bbf5e79aa650e15226a0d5c58ea6c7 (diff) | |
download | rails-f10d62c4bf0be035eafd3f38a9e50550e8060b21.tar.gz rails-f10d62c4bf0be035eafd3f38a9e50550e8060b21.tar.bz2 rails-f10d62c4bf0be035eafd3f38a9e50550e8060b21.zip |
Merge pull request #3343 from vatrai/fix_warning
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 |