aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-10-12 03:47:18 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-10-12 03:47:18 +0900
commitf53f69bdc617d63587036cef84eb11ef2dfbc557 (patch)
tree3fc74777ea39c03b5a9eb4d467252650a6f3dff2
parent32617a2ca3aec1b2649eb86d2b698a0ee04dcb8a (diff)
downloadrails-f53f69bdc617d63587036cef84eb11ef2dfbc557.tar.gz
rails-f53f69bdc617d63587036cef84eb11ef2dfbc557.tar.bz2
rails-f53f69bdc617d63587036cef84eb11ef2dfbc557.zip
Fix `warning: ambiguous first argument`
``` test/cases/adapters/postgresql/case_insensitive_test.rb:12: warning: ambiguous first argument; put parentheses or a space even after `/' operator test/cases/adapters/postgresql/case_insensitive_test.rb:16: warning: ambiguous first argument; put parentheses or a space even after `/' operator test/cases/adapters/postgresql/case_insensitive_test.rb:20: warning: ambiguous first argument; put parentheses or a space even after `/' operator test/cases/adapters/postgresql/case_insensitive_test.rb:24: warning: ambiguous first argument; put parentheses or a space even after `/' operator ```
-rw-r--r--activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb b/activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb
index d04e55f5bf..03b44feab6 100644
--- a/activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb
@@ -9,18 +9,18 @@ class PostgresqlCaseInsensitiveTest < ActiveRecord::PostgreSQLTestCase
column = Default.columns_hash["char1"]
comparison = connection.case_insensitive_comparison table, :char1, column, nil
- assert_match /lower/i, comparison.to_sql
+ assert_match(/lower/i, comparison.to_sql)
column = Default.columns_hash["char2"]
comparison = connection.case_insensitive_comparison table, :char2, column, nil
- assert_match /lower/i, comparison.to_sql
+ assert_match(/lower/i, comparison.to_sql)
column = Default.columns_hash["char3"]
comparison = connection.case_insensitive_comparison table, :char3, column, nil
- assert_match /lower/i, comparison.to_sql
+ assert_match(/lower/i, comparison.to_sql)
column = Default.columns_hash["multiline_default"]
comparison = connection.case_insensitive_comparison table, :multiline_default, column, nil
- assert_match /lower/i, comparison.to_sql
+ assert_match(/lower/i, comparison.to_sql)
end
end