Sha256: 1aff86c5e93c9beb0e853dacdee959b1e84f88cbe8860c0b1b3f5bfd2d787449

Contents?: true

Size: 361 Bytes

Versions: 25

Compression:

Stored size: 361 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

25 entries across 25 versions & 1 rubygems

Version Path
mtwarden-6.1.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-6.1.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-6.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-6.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-5.0.0 lib/mtwarden/testing_support/authentication_helpers.rb