From 5dc73339ae0a139d06296ae935e23b6f8d0efb5b Mon Sep 17 00:00:00 2001 From: Eugen Date: Thu, 13 Apr 2017 02:17:40 +0200 Subject: [PATCH] Fix tests issue introduced in #1607 (#1639) --- spec/lib/webfinger_resource_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/lib/webfinger_resource_spec.rb b/spec/lib/webfinger_resource_spec.rb index 6c9a5ff2ce..dfd23062f5 100644 --- a/spec/lib/webfinger_resource_spec.rb +++ b/spec/lib/webfinger_resource_spec.rb @@ -1,6 +1,12 @@ require 'rails_helper' describe WebfingerResource do + around do |example| + before = Rails.configuration.x.local_domain + example.run + Rails.configuration.x.local_domain = before + end + describe '#username' do describe 'with a URL value' do it 'raises with an unrecognized route' do