Updated specs

This commit is contained in:
Priit Tark 2015-08-19 11:18:38 +03:00
parent 4abf005241
commit 30454cc196
2 changed files with 1 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class Registrar::SessionsController < Devise::SessionsController
redirect_to :back and return
end
if @api_user.can(:create, :epp_login)
if @api_user.can?(:create, :epp_login)
unless @api_user.registrar.api_ip_white?(request.ip)
flash[:alert] = I18n.t(:ip_is_not_whitelisted)
redirect_to :back and return

View file

@ -54,7 +54,6 @@ feature 'Domains', type: :feature do
page.should_not have_text(d1.name)
page.should have_text(d2.name)
end
it 'should search domains' do