File: basic_auth_encode_helpers.rb

package info (click to toggle)
ruby-grape 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,488 kB
  • sloc: ruby: 21,014; makefile: 6
file content (9 lines) | stat: -rw-r--r-- 186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
module Spec
  module Support
    module Helpers
      def encode_basic_auth(username, password)
        'Basic ' + Base64.encode64("#{username}:#{password}")
      end
    end
  end
end