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-17.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-17.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-16.2.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-16.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-16.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-15.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-14.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-13.0.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-13.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-12.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-11.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-9.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-8.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-8.0.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-8.0.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-7.2.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-7.1.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-7.1.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-7.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-7.0.0 lib/mtwarden/testing_support/authentication_helpers.rb