mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Add account and pricelist factories
This commit is contained in:
parent
afac0c571e
commit
cbedd33db3
2 changed files with 17 additions and 0 deletions
7
spec/factories/account.rb
Normal file
7
spec/factories/account.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
FactoryGirl.define do
|
||||
factory :account do
|
||||
account_type Account::CASH
|
||||
balance 1
|
||||
currency 'EUR'
|
||||
end
|
||||
end
|
10
spec/factories/pricelist.rb
Normal file
10
spec/factories/pricelist.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
FactoryGirl.define do
|
||||
factory :pricelist do
|
||||
valid_from Time.zone.parse('05.07.2010')
|
||||
valid_to Time.zone.parse('05.07.2010')
|
||||
category 'com'
|
||||
duration '1year'
|
||||
operation_category 'create'
|
||||
price 1.to_money
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue