Refatored to use shared/title partial

This commit is contained in:
Priit Tark 2015-04-16 16:29:04 +03:00
parent 4c660df43e
commit 8d4124585c
73 changed files with 402 additions and 411 deletions

View 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