Permalink
Browse files

Fix warning

  • Loading branch information...
1 parent 8fc6b9b commit 66144711736a6f778cd1da7498e98db5130aa11d @rafaelfranca rafaelfranca committed Feb 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/migration/index_test.rb
@@ -68,7 +68,7 @@ def test_add_index_does_not_accept_too_long_index_names
e = assert_raises(ArgumentError) {
connection.add_index(table_name, "foo", name: too_long_index_name)
}
- assert_match /too long; the limit is #{connection.allowed_index_name_length} characters/, e.message
+ assert_match(/too long; the limit is #{connection.allowed_index_name_length} characters/, e.message)
assert_not connection.index_name_exists?(table_name, too_long_index_name, false)
connection.add_index(table_name, "foo", :name => good_index_name)

0 comments on commit 6614471

Please sign in to comment.