about summary refs log tree commit diff
path: root/spec/lib/webfinger_resource_spec.rb
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-13 02:17:40 +0200
committerGitHub <noreply@github.com>2017-04-13 02:17:40 +0200
commit5dc73339ae0a139d06296ae935e23b6f8d0efb5b (patch)
tree13585dc09deda29c5bf7950aa3efc441ed6b541d /spec/lib/webfinger_resource_spec.rb
parentccaf3dbc5ad2df867fe05fa5291d62cf2bc377d2 (diff)
Fix tests issue introduced in #1607 (#1639)
Diffstat (limited to 'spec/lib/webfinger_resource_spec.rb')
-rw-r--r--spec/lib/webfinger_resource_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/webfinger_resource_spec.rb b/spec/lib/webfinger_resource_spec.rb
index 6c9a5ff2c..dfd23062f 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