Permalink
Browse files

Missing customers fixture

  • Loading branch information...
1 parent 3fd2624 commit 0da71980cd61aa6297749d0ea8520785c9a5280f @jeremy jeremy committed Nov 13, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 @@ def test_copy_table_renaming_column
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

0 comments on commit 0da7198

Please sign in to comment.