Refactor registrars

- Reorganize views
- Improve database structure
- Use default translations
- Combine tests
This commit is contained in:
Artur Beljajev 2019-05-10 13:13:19 +03:00
parent 59e9b16dfa
commit efb63399b2
27 changed files with 287 additions and 353 deletions

View file

@ -3,12 +3,12 @@ FactoryBot.define do
sequence(:name) { |n| "test#{n}" }
sequence(:code) { |n| "test#{n}" }
sequence(:reg_no) { |n| "test#{n}" }
street 'test'
city 'test'
state 'test'
zip 'test'
email 'test@test.com'
country_code 'US'
address_street 'test'
address_zip 'test'
address_city 'test'
address_state 'test'
address_country_code 'US'
accounting_customer_code 'test'
language 'en'
sequence(:reference_no) { |n| "1234#{n}" }