Sha256: 5bad29f48c1650dc78a61b87e340a3c61bc0df0e3e0eb0e9589e65a65f041e8d

Contents?: true

Size: 310 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
mtwarden-2.2.7 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-2.2.6 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-2.2.5 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-2.2.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-2.1.0 lib/mtwarden/testing_support/authentication_helpers.rb