mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Refatored to use shared/title partial
This commit is contained in:
parent
4c660df43e
commit
8d4124585c
73 changed files with 402 additions and 411 deletions
27
spec/features/admin/zonefile_setting_spec.rb
Normal file
27
spec/features/admin/zonefile_setting_spec.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Zonefile settings', type: :feature do
|
||||
background { create_settings }
|
||||
|
||||
before :all do
|
||||
@user = Fabricate(:admin_user, username: 'user1', identity_code: '37810013087')
|
||||
@contact = Fabricate(:contact, name: 'Mr John')
|
||||
end
|
||||
|
||||
context 'as unknown user' do
|
||||
it 'should redirect to login path' do
|
||||
visit admin_zonefile_settings_url
|
||||
|
||||
current_path.should == '/admin/login'
|
||||
end
|
||||
end
|
||||
|
||||
context 'as logged in user' do
|
||||
it 'should show index of contacts' do
|
||||
sign_in @user
|
||||
visit admin_zonefile_settings_url
|
||||
|
||||
page.should have_content('Zonefile settings')
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue