mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
16 lines
363 B
Ruby
16 lines
363 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.feature 'Deleting zone in admin area' do
|
|
given!(:zone) { create(:zone) }
|
|
|
|
background do
|
|
sign_in_to_admin_area
|
|
end
|
|
|
|
scenario 'deletes zone' do
|
|
visit edit_admin_zone_url(zone)
|
|
click_link_or_button t('admin.dns.zones.edit.delete_btn')
|
|
|
|
expect(page).to have_text(t('admin.dns.zones.destroy.destroyed'))
|
|
end
|
|
end
|