]> git.openstreetmap.org Git - rails.git/commitdiff
Remove unused test helper
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 13 May 2020 16:15:07 +0000 (18:15 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 13 May 2020 16:15:07 +0000 (18:15 +0200)
test/test_helper.rb

index c02b23728cc41ec0425d2f215948f6dd321fee52..9354e664600cd87eccfe4d3107b125bb4b692005 100644 (file)
@@ -115,12 +115,6 @@ module ActiveSupport
       assert_equal a.tags, b.tags, "tags on node #{a.id}"
     end
 
-    ##
-    # set request headers for HTTP basic authentication
-    def basic_authorization(user, pass)
-      @request.env["HTTP_AUTHORIZATION"] = format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}"))
-    end
-
     ##
     # return request header for HTTP Basic Authorization
     def basic_authorization_header(user, pass)