diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-10-10 14:16:45 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-10-10 14:16:45 +0530 |
commit | af7eeaafdbd8d49df6487c3479fee76f2f30346d (patch) | |
tree | fe66d0f130f7b870901ce930710af621a438d15c /activerecord/test/cases/adapters | |
parent | 3456ef11196406f4ae6908d89ec66d38dc716738 (diff) | |
download | rails-af7eeaafdbd8d49df6487c3479fee76f2f30346d.tar.gz rails-af7eeaafdbd8d49df6487c3479fee76f2f30346d.tar.bz2 rails-af7eeaafdbd8d49df6487c3479fee76f2f30346d.zip |
ambiguous first argument; put parentheses or even spaces Warning removed!
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb b/activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb index 5b59293ba4..6bcc113482 100644 --- a/activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb +++ b/activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb @@ -21,7 +21,7 @@ class Mysql2CaseSensitivityTest < 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 Mysql2CaseSensitivityTest < 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 |