Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Feb 21, 2013
1 parent 8fc6b9b commit 6614471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/migration/index_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 6614471

Please sign in to comment.