Sha256: b2411f014180ada54cf38ec5ae565fd88198f1e984012d4ed12fcc5f53872b05

Contents?: true

Size: 361 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
mtwarden-5.0.0b lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-4.1.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-4.1.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-4.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-4.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.6.2 lib/mtwarden/testing_support/authentication_helpers.rb