mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
20 lines
525 B
Ruby
20 lines
525 B
Ruby
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), params: { registrar: { iban: new_iban } }
|
|
@registrar.reload
|
|
|
|
assert_equal new_iban, @registrar.iban
|
|
end
|
|
end
|