about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-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