mirror of
https://github.com/internetee/registry.git
synced 2025-05-30 01:20:04 +02:00
17 lines
441 B
Ruby
17 lines
441 B
Ruby
require 'test_helper'
|
|
|
|
class EditRegistrarTest < ActionDispatch::IntegrationTest
|
|
def setup
|
|
login_as users(:admin)
|
|
@registrar = registrars(:bestnames)
|
|
end
|
|
|
|
def test_updates_registrar
|
|
visit admin_registrar_path(@registrar)
|
|
click_link_or_button 'Edit'
|
|
click_link_or_button 'Update registrar'
|
|
|
|
assert_current_path admin_registrar_path(@registrar)
|
|
assert_text 'Registrar has been successfully updated'
|
|
end
|
|
end
|