Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3343 from vatrai/fix_warning

fix to remove warning in test cases
  • Loading branch information...
commit f10d62c4bf0be035eafd3f38a9e50550e8060b21 2 parents 098c95a + 9210458
@vijaydev vijaydev authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb
View
4 activerecord/test/cases/adapters/mysql/case_sensitivity_test.rb
@@ -21,7 +21,7 @@ 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
@@ -29,7 +29,7 @@ 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
Please sign in to comment.
Something went wrong with that request. Please try again.