forked from mbulat/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
FactoryGirl.define do | ||
factory :account, :class => Plutus::Account do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
factory :asset, :class => Plutus::Asset do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
factory :equity, :class => Plutus::Equity do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
factory :expense, :class => Plutus::Expense do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
factory :liability, :class => Plutus::Liability do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
factory :revenue, :class => Plutus::Revenue do |account| | ||
account.name 'factory name' | ||
account.name | ||
account.contra false | ||
end | ||
|
||
sequence :name do |n| | ||
"Factory Name #{n}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters