Sha256: 56a463a4e5ef7446296cd4cf79727291f334aebe41b42d3af137439ac74f8fba

Contents?: true

Size: 311 Bytes

Versions: 12

Compression:

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

12 entries across 12 versions & 1 rubygems

Version Path
mtwarden-3.3.4 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.3.3 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.3.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.3.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.3.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.2.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.1.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.1.1 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.1.0 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.0.3 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.0.2 lib/mtwarden/testing_support/authentication_helpers.rb
mtwarden-3.0.1 lib/mtwarden/testing_support/authentication_helpers.rb