Replace Warden test helpers with Devise ones

This commit is contained in:
Artur Beljajev 2018-06-19 19:40:35 +03:00
parent 097f213717
commit d064dbc11f
51 changed files with 53 additions and 52 deletions

View file

@ -10,7 +10,7 @@ RSpec.describe 'EPP domain:update' do
subject(:response_description) { response_xml.css('result msg').text }
before :example do
login_as user
sign_in user
allow(Domain).to receive(:nameserver_required?).and_return(false)
Setting.ns_min_count = 2

View file

@ -9,7 +9,7 @@ RSpec.describe 'EPP domain:update' do
subject(:response_description) { response_xml.css('result msg').text }
before :example do
login_as user
sign_in user
allow(Domain).to receive(:nameserver_required?).and_return(false)
end

View file

@ -8,7 +8,7 @@ RSpec.describe 'EPP domain:update' do
let!(:domain) { create(:domain, name: 'test.com', registrant: registrant) }
before :example do
login_as user
sign_in user
end
context 'when registrant change confirmation is enabled' do

View file

@ -10,7 +10,7 @@ RSpec.describe 'EPP domain:update' do
let!(:new_registrant) { create(:registrant, code: 'new-code') }
before :example do
login_as user
sign_in user
end
context 'when registrant change confirmation is enabled' do

View file

@ -20,7 +20,7 @@ RSpec.describe 'EPP domain:update' do
}
before :example do
login_as user
sign_in user
end
context 'when domain has both SERVER_DELETE_PROHIBITED and PENDING_UPDATE statuses' do