Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

started on specs for memo finders

  • Loading branch information...
commit 4a4cb68c3a0cdb090632a550469a663864819b01 1 parent bc99b5b
@arafatm arafatm authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 spec/models/memo_spec.rb
View
17 spec/models/memo_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.