Displaying 1 result from an estimated 1 matches for "duration_in_months".
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
...assert_equal sub_plan.publication_id, pub.id
assert_valid sub_plan, "errors: #{sub_plan.errors.to_yaml}"
end
private
# just a little util method to create a record with the necessary parameters
def create(h={})
SubscriptionPlan.create({
:price => 55.25,
:duration_in_months => 17,
:publication => @gold,
:active => false
}.merge(h))
end
end
And here are the test results:
4) Failure:
test_should_make_sure_record_can_be_created(SubscriptionPlanTest)
[./../test_helper.rb:33:in `assert_valid''
subscription_plan_test.rb:19:in...