mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
parent
d27594603b
commit
aaf6eb3a71
5 changed files with 5 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Sessions', type: :feature do
|
||||
RSpec.feature 'Sessions' do
|
||||
context 'with invalid ip' do
|
||||
it 'should not see login page' do
|
||||
Setting.registrar_ip_whitelist_enabled = true
|
||||
|
@ -18,6 +18,7 @@ feature 'Sessions', type: :feature do
|
|||
end
|
||||
|
||||
it 'should see log in' do
|
||||
@fixed_registrar = Fabricate(:registrar, name: 'fixed registrar', code: 'FIXED')
|
||||
@fixed_registrar.white_ips = [Fabricate(:white_ip_registrar)]
|
||||
visit registrar_login_path
|
||||
page.should have_text('Log in')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue