diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-13 10:38:23 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-13 10:38:23 -0800 |
commit | 0da71980cd61aa6297749d0ea8520785c9a5280f (patch) | |
tree | 747757b41f1091be6b6d6ae35fd8d523f7f69e78 | |
parent | 3fd2624be45cb3124641f53d9e520523d9bc49c9 (diff) | |
download | rails-0da71980cd61aa6297749d0ea8520785c9a5280f.tar.gz rails-0da71980cd61aa6297749d0ea8520785c9a5280f.tar.bz2 rails-0da71980cd61aa6297749d0ea8520785c9a5280f.zip |
Missing customers fixture
-rw-r--r-- | activerecord/test/cases/copy_table_test_sqlite.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/copy_table_test_sqlite.rb b/activerecord/test/cases/copy_table_test_sqlite.rb index de8af30997..575b4806c1 100644 --- a/activerecord/test/cases/copy_table_test_sqlite.rb +++ b/activerecord/test/cases/copy_table_test_sqlite.rb @@ -1,7 +1,7 @@ require "cases/helper" class CopyTableTest < ActiveRecord::TestCase - fixtures :companies, :comments + fixtures :customers, :companies, :comments def setup @connection = ActiveRecord::Base.connection @@ -27,8 +27,8 @@ class CopyTableTest < ActiveRecord::TestCase 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, 'person_name') + assert expected.any?, "No values in table: #{expected.inspect}" end end |