Sha256: 1c0ab3a710e8852048e655059dcfefb647dcec4658d6739d37661b3f1fd9dcec

Contents?: true

Size: 362 Bytes

Versions: 4

Compression:

Stored size: 362 Bytes

Contents

module Mtwarden
  module TestingSupport
    module AuthenticationHelpers

      include Warden::Test::Helpers

      def self.included(base)
        base.after do
          logout
        end
      end

      def sign_in_as(options={}) 
        options.each do |scope, object|
          login_as(object, :scope => scope)
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mtwarden-3.6.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.6.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.5.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.5.0 lib/mtwarden/testing_support/authentication_helpers.rb