mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
parent
5fdc1938af
commit
5a533e09bf
44 changed files with 1027 additions and 375 deletions
10
spec/factories/billing/price.rb
Normal file
10
spec/factories/billing/price.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
FactoryGirl.define do
|
||||
factory :price, class: Billing::Price do
|
||||
price Money.from_amount(1)
|
||||
valid_from Time.zone.parse('05.07.2010')
|
||||
valid_to Time.zone.parse('05.07.2010')
|
||||
duration '1 year'
|
||||
operation_category Billing::Price.operation_categories.first
|
||||
zone
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
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