mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 21:19:31 +02:00
parent
963f6f87cf
commit
5061962c40
2 changed files with 2 additions and 7 deletions
|
@ -3,12 +3,6 @@ require 'test_helper'
|
||||||
class AdminAreaNewRegistrarTest < ActionDispatch::IntegrationTest
|
class AdminAreaNewRegistrarTest < ActionDispatch::IntegrationTest
|
||||||
setup do
|
setup do
|
||||||
login_as users(:admin)
|
login_as users(:admin)
|
||||||
@original_registry_country_code = Setting.registry_country_code
|
|
||||||
Setting.registry_country_code = 'DE'
|
|
||||||
end
|
|
||||||
|
|
||||||
teardown do
|
|
||||||
Setting.registry_country_code = @original_registry_country_code
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_new_registrar_creation_with_required_params
|
def test_new_registrar_creation_with_required_params
|
||||||
|
@ -18,7 +12,7 @@ class AdminAreaNewRegistrarTest < ActionDispatch::IntegrationTest
|
||||||
fill_in 'Name', with: 'Brand new names'
|
fill_in 'Name', with: 'Brand new names'
|
||||||
fill_in 'Reg no', with: '55555555'
|
fill_in 'Reg no', with: '55555555'
|
||||||
fill_in 'Contact e-mail', with: 'test@example.com'
|
fill_in 'Contact e-mail', with: 'test@example.com'
|
||||||
select 'Germany', from: 'Country'
|
select 'United States', from: 'Country'
|
||||||
fill_in 'Accounting customer code', with: 'test'
|
fill_in 'Accounting customer code', with: 'test'
|
||||||
fill_in 'Code', with: 'test'
|
fill_in 'Code', with: 'test'
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ require 'webmock/minitest'
|
||||||
require 'support/rails5_assetions' # Remove once upgraded to Rails 5
|
require 'support/rails5_assetions' # Remove once upgraded to Rails 5
|
||||||
|
|
||||||
Setting.address_processing = false
|
Setting.address_processing = false
|
||||||
|
Setting.registry_country_code = 'US'
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
class ActiveSupport::TestCase
|
||||||
include FactoryBot::Syntax::Methods
|
include FactoryBot::Syntax::Methods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue