aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/array_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-01-19 05:59:56 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-01-19 06:11:29 +0900
commitbd78cc8833e7e7ee5f0812325d6451eed567ce62 (patch)
tree2345a11a952cde006b04b069dea6fcc3826f3bbf /activerecord/test/cases/adapters/postgresql/array_test.rb
parentea721d7027c16f64c47395546c67858060a273e3 (diff)
downloadrails-bd78cc8833e7e7ee5f0812325d6451eed567ce62.tar.gz
rails-bd78cc8833e7e7ee5f0812325d6451eed567ce62.tar.bz2
rails-bd78cc8833e7e7ee5f0812325d6451eed567ce62.zip
Should escape regexp wildcard character `.`
`.` is regexp meta character. It should be escape for `assert_match` correctly.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/array_test.rb')
-rw-r--r--activerecord/test/cases/adapters/postgresql/array_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb
index 77055f5b7a..331f33455e 100644
--- a/activerecord/test/cases/adapters/postgresql/array_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/array_test.rb
@@ -112,8 +112,8 @@ class PostgresqlArrayTest < ActiveRecord::TestCase
def test_schema_dump_with_shorthand
output = dump_table_schema "pg_arrays"
- assert_match %r[t.string\s+"tags",\s+array: true], output
- assert_match %r[t.integer\s+"ratings",\s+array: true], output
+ assert_match %r[t\.string\s+"tags",\s+array: true], output
+ assert_match %r[t\.integer\s+"ratings",\s+array: true], output
end
def test_select_with_strings