Displaying 1 result from an estimated 1 matches for "linked_to_residual_value_of_asset".
2007 May 01
2
Problem validating boolean
...lt; ActiveRecord::Base
belongs_to :asset
validates_presence_of :finance_company
validates_inclusion_of :balance, :in => 0.01..10_000_000
validates_inclusion_of :term, :in => 1..600
validates_numericality_of :term, :only_integer => true
validates_inclusion_of :linked_to_residual_value_of_asset, :in
=> [true, false]
end
and here''s the RSpec code I''m using to test it:
context "A FinanceAgreement with valid attributes" do
setup do
@finance_agreement = FinanceAgreement.new(:finance_company =>
"Jigsaw Finance", :start_date =&...