]> cat aescling's git repositories - mastodon.git/commitdiff
Fix tests issue introduced in #1607 (#1639)
authorEugen <eugen@zeonfederated.com>
Thu, 13 Apr 2017 00:17:40 +0000 (02:17 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2017 00:17:40 +0000 (02:17 +0200)
spec/lib/webfinger_resource_spec.rb

index 6c9a5ff2ce6ef736cf1f526c889e959bc0be7340..dfd23062f57fa485c59fafb14c88ab5f0440f86b 100644 (file)
@@ -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