lib/mtwarden/testing_support/authentication_helpers.rb in mtwarden-3.3.4 vs lib/mtwarden/testing_support/authentication_helpers.rb in mtwarden-3.5.0
- old
+ new
@@ -1,17 +1,21 @@
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
+ 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