mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Refactor zones
- Rename "zonefile_setting" to "zone" - Remove version #475
This commit is contained in:
parent
f1d7e53734
commit
bff7437277
51 changed files with 425 additions and 389 deletions
29
spec/features/admin/dns/zones/edit_spec.rb
Normal file
29
spec/features/admin/dns/zones/edit_spec.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Editing zone in admin area' do
|
||||
given!(:zone) { create(:zone) }
|
||||
|
||||
background do
|
||||
sign_in_to_admin_area
|
||||
end
|
||||
|
||||
scenario 'updates zone' do
|
||||
open_list
|
||||
open_form
|
||||
submit_form
|
||||
|
||||
expect(page).to have_text(t('admin.dns.zones.update.updated'))
|
||||
end
|
||||
|
||||
def open_list
|
||||
click_link_or_button t('admin.menu.zones')
|
||||
end
|
||||
|
||||
def open_form
|
||||
click_link_or_button t('admin.dns.zones.zone.edit_btn')
|
||||
end
|
||||
|
||||
def submit_form
|
||||
click_link_or_button t('admin.dns.zones.form.update_btn')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue