提交 e0c344dc 编写于 作者: J José Valim

Fix active_resource assertions.

上级 f8294cb8
...@@ -1076,11 +1076,11 @@ def test_update_with_custom_primary_key ...@@ -1076,11 +1076,11 @@ def test_update_with_custom_primary_key
plan = SubscriptionPlan.find("silver") plan = SubscriptionPlan.find("silver")
assert !plan.new? assert !plan.new?
assert 5.00, plan.price assert_equal 5.00, plan.price
# update price # update price
plan.price = 10.00 plan.price = 10.00
plan.save! plan.save!
assert 10.00, plan.price assert_equal 10.00, plan.price
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册