Skip to content
This repository
Browse code

Change table to prevent copying indexes on sqlite2

  • Loading branch information...
commit 09a976ac58d2d7637003b92d51637f59f647b53a 1 parent 5bbd097
Pratik authored April 21, 2009
10  activerecord/test/cases/copy_table_test_sqlite.rb
@@ -10,7 +10,7 @@ class << @connection
10 10
     end
11 11
   end
12 12
 
13  
-  def test_copy_table(from = 'companies', to = 'companies2', options = {})
  13
+  def test_copy_table(from = 'customers', to = 'customers2', options = {})
14 14
     assert_nothing_raised {copy_table(from, to, options)}
15 15
     assert_equal row_count(from), row_count(to)
16 16
 
@@ -24,11 +24,11 @@ def test_copy_table(from = 'companies', to = 'companies2', options = {})
24 24
   end
25 25
 
26 26
   def test_copy_table_renaming_column
27  
-    test_copy_table('companies', 'companies2',
28  
-        :rename => {'client_of' => 'fan_of'}) do |from, to, options|
29  
-      expected = column_values(from, 'client_of')
  27
+    test_copy_table('customers', 'customers2',
  28
+        :rename => {'name' => 'person_name'}) do |from, to, options|
  29
+      expected = column_values(from, 'name')
30 30
       assert expected.any?, 'only nils in resultset; real values are needed'
31  
-      assert_equal expected, column_values(to, 'fan_of')
  31
+      assert_equal expected, column_values(to, 'person_name')
32 32
     end
33 33
   end
34 34
 

0 notes on commit 09a976a

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