aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-10-10 04:39:18 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2011-10-10 04:39:18 -0700
commite9413b5de34615948b9092fe6976272a36cc2fef (patch)
treeed0a461e84c352884ff36065e6f934cdce76e636 /activerecord
parentb27ca99b7bd35a7f8e79475c8ea4a1b0bbf5fd11 (diff)
parentaf7eeaafdbd8d49df6487c3479fee76f2f30346d (diff)
downloadrails-e9413b5de34615948b9092fe6976272a36cc2fef.tar.gz
rails-e9413b5de34615948b9092fe6976272a36cc2fef.tar.bz2
rails-e9413b5de34615948b9092fe6976272a36cc2fef.zip
Merge pull request #3274 from arunagw/warning_removed_mysql2
ambiguous first argument; put parentheses or even spaces Warning removed!
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/mysql2/case_sensitivity_test.rb4
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