From d12e6029889f7905c8b1586d93f653ed0978a88e Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 8 Nov 2017 11:47:17 +0100 Subject: fix #8010 - publish public key in webfinger we were simply referring to the wrong key. includes test --- test/functional/webfinger_controller_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/functional') diff --git a/test/functional/webfinger_controller_test.rb b/test/functional/webfinger_controller_test.rb index 6597b69..7e1c72a 100644 --- a/test/functional/webfinger_controller_test.rb +++ b/test/functional/webfinger_controller_test.rb @@ -15,11 +15,13 @@ class WebfingerControllerTest < ActionController::TestCase end test "get user webfinger xml" do - @user = stub_record :user, :public_key => 'my public key' + key = 'my public key' + @user = stub_record :user, :public_key => key User.stubs(:find_by_login).with(@user.login).returns(@user) get :search, :q => @user.email_address.to_s, :format => :xml assert_response :success assert_equal "application/xml", response.content_type + assert_includes response.body, Base64.encode64(key) end test "get user webfinger json" do -- cgit v1.2.3