Fix EPP domain:renew specs

#430
This commit is contained in:
Artur Beljajev 2017-04-17 16:22:25 +03:00
parent 87f48d6788
commit f03ce11197
3 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@ RSpec.describe 'EPP domain:renew' do
} }
before :example do before :example do
Setting.days_to_renew_domain_before_expire = 1
travel_to Time.zone.parse('05.07.2010') travel_to Time.zone.parse('05.07.2010')
sign_in_to_epp_area(user: user) sign_in_to_epp_area(user: user)
end end

View file

@ -14,6 +14,7 @@ RSpec.describe 'EPP domain:renew' do
} }
before :example do before :example do
Setting.days_to_renew_domain_before_expire = 1
travel_to Time.zone.parse('05.07.2010') travel_to Time.zone.parse('05.07.2010')
sign_in_to_epp_area(user: user) sign_in_to_epp_area(user: user)
end end

View file

@ -7,7 +7,8 @@ RSpec.describe 'EPP domain:renew' do
subject(:response_code) { response_xml.xpath('//xmlns:result').first['code'] } subject(:response_code) { response_xml.xpath('//xmlns:result').first['code'] }
subject(:response_description) { response_xml.css('result msg').text } subject(:response_description) { response_xml.css('result msg').text }
before do before :example do
Setting.days_to_renew_domain_before_expire = 1
travel_to Time.zone.parse('05.07.2010') travel_to Time.zone.parse('05.07.2010')
sign_in_to_epp_area(user: user) sign_in_to_epp_area(user: user)
FactoryGirl.create(:account, registrar: registrar, balance: 1) FactoryGirl.create(:account, registrar: registrar, balance: 1)