mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
18 lines
382 B
Ruby
18 lines
382 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.feature 'Edit registrar' do
|
|
given!(:registrar) { create(:registrar) }
|
|
|
|
background do
|
|
sign_in_to_admin_area
|
|
end
|
|
|
|
it 'updates registrar' do
|
|
visit admin_registrar_url(registrar)
|
|
click_link_or_button 'Edit'
|
|
|
|
click_link_or_button 'Update registrar'
|
|
|
|
expect(page).to have_text('Registrar has been successfully updated')
|
|
end
|
|
end
|