diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 13:28:49 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 13:28:49 +0100 |
commit | 2e6d1bf43e162026307141806e04b4d62e40a2f8 (patch) | |
tree | 229b36b4e5c05c0d355b3b88afb8f1123a44508a /activerecord/test/cases/copy_table_test_sqlite.rb | |
parent | 2381f6f3dc311f18164aeb4a253ced0feaeef8a9 (diff) | |
download | rails-2e6d1bf43e162026307141806e04b4d62e40a2f8.tar.gz rails-2e6d1bf43e162026307141806e04b4d62e40a2f8.tar.bz2 rails-2e6d1bf43e162026307141806e04b4d62e40a2f8.zip |
Change table to prevent copying indexes on sqlite2
Diffstat (limited to 'activerecord/test/cases/copy_table_test_sqlite.rb')
-rw-r--r-- | activerecord/test/cases/copy_table_test_sqlite.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/test/cases/copy_table_test_sqlite.rb b/activerecord/test/cases/copy_table_test_sqlite.rb index 72bd7e2dab..de8af30997 100644 --- a/activerecord/test/cases/copy_table_test_sqlite.rb +++ b/activerecord/test/cases/copy_table_test_sqlite.rb @@ -10,7 +10,7 @@ class CopyTableTest < ActiveRecord::TestCase 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 @@ class CopyTableTest < ActiveRecord::TestCase 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 |