Permalink
Browse files

started on specs for memo finders

  • Loading branch information...
1 parent bc99b5b commit 4a4cb68c3a0cdb090632a550469a663864819b01 @arafatm arafatm committed Jan 9, 2009
Showing with 17 additions and 0 deletions.
  1. +17 −0 spec/models/memo_spec.rb
View
@@ -33,5 +33,22 @@
end
end
+
+ describe 'finders' do
+ before :each do
+ checking = Account.generate!(:name => "checking")
+ income = Account.generate!(:name => "income")
+ taxes = Account.generate!(:name => "taxes")
+ @memo = Memo.generate!(:user => User.generate!,
+ :text => "paycheck")
+ Entry.generate!(:memo => @memo,
+ :debit_account => income,
+ :credit_account => checking,
+ :amount => 500)
+ Entry.generate!(:memo => @memo,
+ :debit_account => income,
+ :credit_account => taxes,
+ :amount => 500)
+ end
end

0 comments on commit 4a4cb68

Please sign in to comment.