Sha256: c9006e530431a6030cba4aebf6322537d7504c4ec56e7363aaa139c00f70fe3b

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

module Support
  module Helpers
    module Auth
      def authenticate
        username = Attorney.http_auth[:name]
        password = Attorney.http_auth[:password]
        credentials = ActionController::HttpAuthentication::Basic.encode_credentials(username, password)
        page.driver.header('Authorization', credentials)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attorney-1.0.0 spec/support/helpers/auth.rb