Improve registrar area sign-in/out specs

#599
This commit is contained in:
Artur Beljajev 2017-10-10 06:05:11 +03:00
parent 6e597f39e8
commit 457b73a28e

View file

@ -1,7 +1,7 @@
require 'rails_helper' require 'rails_helper'
RSpec.describe 'Registrar area IP restriction', settings: false do RSpec.describe 'Registrar area IP restriction', settings: false do
describe 'authenticated area' do context 'when authenticated' do
before do before do
sign_in_to_registrar_area sign_in_to_registrar_area
end end
@ -51,7 +51,7 @@ RSpec.describe 'Registrar area IP restriction', settings: false do
end end
end end
describe 'unauthenticated area' do context 'when unauthenticated' do
context 'when IP restriction is enabled' do context 'when IP restriction is enabled' do
before do before do
Setting.registrar_ip_whitelist_enabled = true Setting.registrar_ip_whitelist_enabled = true