Fix Active Record test failure

Caused at a45363a2fb.
This commit is contained in:
Ryuta Kamizono 2016-07-12 01:42:22 +09:00
parent 968b59af87
commit b10b7917e6
1 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class NumericData < ActiveRecord::Base
end
class CalculationsTest < ActiveRecord::TestCase
fixtures :companies, :accounts, :topics, :speedometers, :minivans
fixtures :companies, :accounts, :topics, :speedometers, :minivans, :books
def test_should_sum_field
assert_equal 318, Account.sum(:credit_limit)
@ -796,7 +796,6 @@ class CalculationsTest < ActiveRecord::TestCase
end
def test_group_by_attribute_with_custom_type
Book.create!(status: :published)
assert_equal({ "published" => 1 }, Book.group(:status).count)
assert_equal({ "proposed" => 2, "published" => 2 }, Book.group(:status).count)
end
end