mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Feature tests for account activities
This commit is contained in:
parent
e4dc1d466f
commit
c4b0d6aee5
7 changed files with 45 additions and 4 deletions
5
spec/fabricators/account_activity_fabricator.rb
Normal file
5
spec/fabricators/account_activity_fabricator.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
Fabricator(:account_activity) do
|
||||
invoice
|
||||
currency 'EUR'
|
||||
sum 110.0
|
||||
end
|
|
@ -2,4 +2,5 @@ Fabricator(:account) do
|
|||
account_type { Account::CASH }
|
||||
balance 0.0
|
||||
currency 'EUR'
|
||||
account_activities(count: 2)
|
||||
end
|
||||
|
|
|
@ -11,6 +11,10 @@ Fabricator(:registrar) do
|
|||
accounts(count: 1)
|
||||
end
|
||||
|
||||
Fabricator(:registrar_with_no_account_activities, from: :registrar) do
|
||||
accounts(count: 1) { Fabricate(:account, account_activities: []) }
|
||||
end
|
||||
|
||||
Fabricator(:registrar1, from: :registrar) do
|
||||
name 'registrar1'
|
||||
reg_no '111'
|
||||
|
@ -43,4 +47,5 @@ Fabricator(:eis, from: :registrar) do
|
|||
street 'Paldiski mnt 80'
|
||||
zip '10617'
|
||||
url 'www.internet.ee'
|
||||
accounts(count: 1) { Fabricate(:account, account_activities: []) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue