test/support/integration_helpers.rb in devise-security-0.14.3 vs test/support/integration_helpers.rb in devise-security-0.15.0
- old
+ new
@@ -2,10 +2,10 @@
# login the user. This will exercise all the Warden Hooks
# @param user [User]
# @param session [ActionDispatch::Integration::Session]
# @return [void]
# @note accounts for differences in the integration test API between rails versions
- def sign_in(user, session)
+ def sign_in(user, session = integration_session)
if Rails.gem_version > Gem::Version.new('5.0')
session.post new_user_session_path, params: {
user: {
email: user.email,
password: user.password