Merge pull request #4224 from betagouv/fix_flaky_spec

fix flaky spec in ip_service_spec
This commit is contained in:
LeSim 2019-08-20 16:48:09 +02:00 committed by GitHub
commit cf6c33b9b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,8 @@ require 'spec_helper'
describe IPService do describe IPService do
describe '.ip_trusted?' do describe '.ip_trusted?' do
after(:each) { ENV['TRUSTED_NETWORKS'] = nil }
subject { IPService.ip_trusted?(ip) } subject { IPService.ip_trusted?(ip) }
context 'when the ip is nil' do context 'when the ip is nil' do