mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add registrar IBAN
This commit is contained in:
parent
10dbd83d50
commit
ca317ace45
8 changed files with 45 additions and 2 deletions
20
test/integration/admin_area/registrars_test.rb
Normal file
20
test/integration/admin_area/registrars_test.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AdminAreaRegistrarsIntegrationTest < ActionDispatch::IntegrationTest
|
||||
include Devise::Test::IntegrationHelpers
|
||||
|
||||
setup do
|
||||
@registrar = registrars(:bestnames)
|
||||
sign_in users(:admin)
|
||||
end
|
||||
|
||||
def test_updates_registrar_optional_attributes
|
||||
new_iban = 'GB94BARC10201530093459'
|
||||
assert_not_equal new_iban, @registrar.iban
|
||||
|
||||
patch admin_registrar_path(@registrar), registrar: { iban: new_iban }
|
||||
@registrar.reload
|
||||
|
||||
assert_equal new_iban, @registrar.iban
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue