Permalink
Browse files

Use real table and columns for index test

  • Loading branch information...
1 parent d3d807a commit 7c167dd2de9acd5496070467dfbc4dfc4304a639 @rafaelfranca rafaelfranca committed Feb 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/migration_test.rb
@@ -162,10 +162,10 @@ def test_add_index_length_limit
end
def test_add_index_attribute_length_limit
- Person.connection.add_index :testings, [:foo, :bar], :length => {:foo => 10, :bar => nil}, :name => "attribute_length"
- assert Person.connection.index_exists?(:testings, [:foo, :bar])
+ Person.connection.add_index :people, [:first_name, :primary_contact_id], :length => {:first_name => 10, :primary_contact_id => nil}, :name => "attribute_length"
+ assert Person.connection.index_exists?(:people, [:first_name, :primary_contact_id], :name => "attribute_length")
ensure
- Person.connection.remove_index("people", :name => "attribute_length")
+ Person.connection.remove_index(:people, :name => "attribute_length")
end
def test_remove_nonexistent_index

0 comments on commit 7c167dd

Please sign in to comment.