Permalink
Browse files

fix to remove warning in test cases

  • Loading branch information...
vishnuatrai committed Oct 16, 2011
1 parent 098c95a commit 9210458547bbf5e79aa650e15226a0d5c58ea6c7
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb
@@ -21,15 +21,15 @@ def test_case_insensitive_comparison_for_ci_column
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
def test_case_insensitive_comparison_for_cs_column
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

0 comments on commit 9210458

Please sign in to comment.