require File.dirname(__FILE__) + '/../test_helper' class PaymentTest < Test::Unit::TestCase fixtures :payments check_input_sanitation 'Payment' def test_owner account = Account.new payment = Payment.new assert (not payment.owner? account) payment.account = account assert payment.owner?(account) end end