mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Merge branch 'minitest-config' into registry-343
This commit is contained in:
commit
9eacfaddcc
6 changed files with 60 additions and 9 deletions
|
@ -22,9 +22,6 @@
|
|||
%dt= t(:vat_no)
|
||||
%dd= @registrar.vat_no
|
||||
|
||||
%dt= t(:reference_no)
|
||||
%dd= @registrar.reference_no
|
||||
|
||||
%dt= t(:id)
|
||||
%dd= @registrar.code
|
||||
|
||||
|
@ -45,9 +42,3 @@
|
|||
|
||||
%dt= t(:contact_email)
|
||||
%dd= @registrar.email
|
||||
|
||||
%dt= t(:billing_address)
|
||||
%dd= @registrar.billing_address
|
||||
|
||||
%dt= t(:billing_email)
|
||||
%dd= @registrar.billing_email
|
||||
|
|
7
test/fixtures/account_activities.yml
vendored
Normal file
7
test/fixtures/account_activities.yml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
account_id: 1
|
||||
|
||||
one:
|
||||
<<: *DEFAULTS
|
||||
invoice: paid
|
||||
bank_transaction: one
|
3
test/fixtures/bank_transactions.yml
vendored
Normal file
3
test/fixtures/bank_transactions.yml
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
one:
|
||||
sum: 1
|
||||
currency: EUR
|
13
test/fixtures/invoice_items.yml
vendored
Normal file
13
test/fixtures/invoice_items.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
description: Acme services
|
||||
amount: 2
|
||||
unit: pc
|
||||
price: 5
|
||||
|
||||
valid:
|
||||
<<: *DEFAULTS
|
||||
invoice: valid
|
||||
|
||||
another:
|
||||
<<: *DEFAULTS
|
||||
invoice: valid
|
32
test/fixtures/invoices.yml
vendored
Normal file
32
test/fixtures/invoices.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
created_at: <%= Date.parse '2010-07-05' %>
|
||||
due_date: <%= Date.parse '2010-07-06' %>
|
||||
invoice_type: DEB
|
||||
currency: EUR
|
||||
seller_name: John Doe
|
||||
seller_iban: 1234
|
||||
buyer_name: Jane Doe
|
||||
vat_prc: 0.2
|
||||
|
||||
valid:
|
||||
<<: *DEFAULTS
|
||||
|
||||
exported:
|
||||
<<: *DEFAULTS
|
||||
in_directo: true
|
||||
|
||||
cancelled:
|
||||
<<: *DEFAULTS
|
||||
cancelled_at: <%= Date.parse '2010-07-05' %>
|
||||
|
||||
paid:
|
||||
<<: *DEFAULTS
|
||||
sum_cache: 1
|
||||
|
||||
outstanding:
|
||||
<<: *DEFAULTS
|
||||
due_date: <%= Date.parse '2010-07-04' %>
|
||||
|
||||
overdue:
|
||||
<<: *DEFAULTS
|
||||
due_date: <%= Date.parse '2010-07-03' %>
|
|
@ -1,17 +1,22 @@
|
|||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
require 'minitest/mock'
|
||||
require 'capybara/rails'
|
||||
require 'capybara/minitest'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
include FactoryBot::Syntax::Methods
|
||||
|
||||
ActiveRecord::Migration.check_pending!
|
||||
fixtures :all
|
||||
end
|
||||
|
||||
class ActionDispatch::IntegrationTest
|
||||
include Warden::Test::Helpers
|
||||
include Capybara::DSL
|
||||
include Capybara::Minitest::Assertions
|
||||
include AbstractController::Translation
|
||||
|
||||
def teardown
|
||||
Capybara.reset_sessions!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue