about summary refs log tree commit diff
path: root/spec/controllers/xrd_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/xrd_controller_spec.rb')
-rw-r--r--spec/controllers/xrd_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/xrd_controller_spec.rb b/spec/controllers/xrd_controller_spec.rb
index e687cf9e0..b56c68f5c 100644
--- a/spec/controllers/xrd_controller_spec.rb
+++ b/spec/controllers/xrd_controller_spec.rb
@@ -14,7 +14,7 @@ RSpec.describe XrdController, type: :controller do
     let(:alice) { Fabricate(:account, username: 'alice') }
 
     it 'returns http success when account can be found' do
-      get :webfinger, params: { resource: "acct:#{alice.username}@#{Rails.configuration.x.local_domain}" }
+      get :webfinger, params: { resource: alice.to_webfinger_s }
       expect(response).to have_http_status(:success)
     end