Skip to content
This repository
Browse code

Merge pull request #4941 from rafaelfranca/fix-build

Use real table and columns for index test
  • Loading branch information...
commit 6d17b3677886438b208326df75b7d7ad6e7eadb4 2 parents d3d807a + 7c167dd
José Valim authored February 08, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  activerecord/test/cases/migration_test.rb
6  activerecord/test/cases/migration_test.rb
@@ -162,10 +162,10 @@ def test_add_index_length_limit
162 162
     end
163 163
 
164 164
     def test_add_index_attribute_length_limit
165  
-      Person.connection.add_index :testings, [:foo, :bar], :length => {:foo => 10, :bar => nil}, :name => "attribute_length"
166  
-      assert Person.connection.index_exists?(:testings, [:foo, :bar])
  165
+      Person.connection.add_index :people, [:first_name, :primary_contact_id], :length => {:first_name => 10, :primary_contact_id => nil}, :name => "attribute_length"
  166
+      assert Person.connection.index_exists?(:people, [:first_name, :primary_contact_id], :name => "attribute_length")
167 167
     ensure
168  
-      Person.connection.remove_index("people", :name => "attribute_length")
  168
+      Person.connection.remove_index(:people, :name => "attribute_length")
169 169
     end
170 170
 
171 171
     def test_remove_nonexistent_index

0 notes on commit 6d17b36

Please sign in to comment.
Something went wrong with that request. Please try again.