Displaying 1 result from an estimated 1 matches for "checkdetail".
2006 Oct 24
1
test env. differs from development env, tests breaking
...n( :description, :string )
t.column( :amount_in_cents, :integer )
#t.column( :account_to_credit_id, :integer )
#t.column( :account_to_debit_id, :integer )
end
add_index( :check_details, :check_id )
Now from test/unit/check_detail_test.rb,
# validates_presence_of :check_id
cd = CheckDetail.new(
:amount => 21.21,
:description => "Services Rendered"
)
assert(!cd.save, "Shouldn''t be able to save this like this here
thing.")
This fails when I run tests, but when I do it in development, I get the
correct result.
DEVELOPMENT CONSOLE
-------...