Fix EPP domain:renew specs

#430
This commit is contained in:
Artur Beljajev 2017-04-17 16:40:14 +03:00
parent f03ce11197
commit 74ba4a5b01
3 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@ RSpec.describe 'EPP domain:renew' do
} }
before :example do before :example do
Setting.days_to_renew_domain_before_expire = 1 Setting.days_to_renew_domain_before_expire = 0
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,7 +14,7 @@ RSpec.describe 'EPP domain:renew' do
} }
before :example do before :example do
Setting.days_to_renew_domain_before_expire = 1 Setting.days_to_renew_domain_before_expire = 0
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

@ -8,7 +8,6 @@ RSpec.describe 'EPP domain:renew' do
subject(:response_description) { response_xml.css('result msg').text } subject(:response_description) { response_xml.css('result msg').text }
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)
FactoryGirl.create(:account, registrar: registrar, balance: 1) FactoryGirl.create(:account, registrar: registrar, balance: 1)