Skip to content
Browse files

Change table to prevent copying indexes on sqlite2

  • Loading branch information...
1 parent 2381f6f commit 2e6d1bf43e162026307141806e04b4d62e40a2f8 @lifo lifo committed Apr 21, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 activerecord/test/cases/copy_table_test_sqlite.rb
View
10 activerecord/test/cases/copy_table_test_sqlite.rb
@@ -10,7 +10,7 @@ class << @connection
end
end
- def test_copy_table(from = 'companies', to = 'companies2', options = {})
+ def test_copy_table(from = 'customers', to = 'customers2', options = {})
assert_nothing_raised {copy_table(from, to, options)}
assert_equal row_count(from), row_count(to)
@@ -24,11 +24,11 @@ def test_copy_table(from = 'companies', to = 'companies2', options = {})
end
def test_copy_table_renaming_column
- test_copy_table('companies', 'companies2',
- :rename => {'client_of' => 'fan_of'}) do |from, to, options|
- expected = column_values(from, 'client_of')
+ test_copy_table('customers', 'customers2',
+ :rename => {'name' => 'person_name'}) do |from, to, options|
+ expected = column_values(from, 'name')
assert expected.any?, 'only nils in resultset; real values are needed'
- assert_equal expected, column_values(to, 'fan_of')
+ assert_equal expected, column_values(to, 'person_name')
end
end

0 comments on commit 2e6d1bf

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