aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-05-07 04:08:58 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-05-07 04:10:00 +0900
commitb201474756a2ee493406ad0cb49f49c6873bdc28 (patch)
tree5bf7fc2271ddc5d4ed511db35893c2049142831b /activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
parentaf58740b8d943f90a18c3e7ceca9432775cfe192 (diff)
downloadrails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.gz
rails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.bz2
rails-b201474756a2ee493406ad0cb49f49c6873bdc28.zip
Should escape meta characters in regexp
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb')
-rw-r--r--activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
index a0823be143..71dcfaa241 100644
--- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
@@ -58,9 +58,9 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase
test "schema dump includes unsigned option" do
schema = dump_table_schema "unsigned_types"
- assert_match %r{t.integer\s+"unsigned_integer",\s+unsigned: true$}, schema
- assert_match %r{t.bigint\s+"unsigned_bigint",\s+unsigned: true$}, schema
- assert_match %r{t.float\s+"unsigned_float",\s+limit: 24,\s+unsigned: true$}, schema
- assert_match %r{t.decimal\s+"unsigned_decimal",\s+precision: 10,\s+scale: 2,\s+unsigned: true$}, schema
+ assert_match %r{t\.integer\s+"unsigned_integer",\s+unsigned: true$}, schema
+ assert_match %r{t\.bigint\s+"unsigned_bigint",\s+unsigned: true$}, schema
+ assert_match %r{t\.float\s+"unsigned_float",\s+limit: 24,\s+unsigned: true$}, schema
+ assert_match %r{t\.decimal\s+"unsigned_decimal",\s+precision: 10,\s+scale: 2,\s+unsigned: true$}, schema
end
end