Adan Amarillas
9a149ff139
Return 401 for sessions#destroy action with no user signed in ( #4878 )
...
It's an unauthenticated request, so return 401 Unauthorized like most
other similar requests.
Signed-off-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com >
2025-12-31 13:56:01 -03:00
Carlos Antonio da Silva
95618806c4
Remove no longer relevant test for mass assignment sanitization
...
This is no longer in Rails since v5, it's been extracted to
`protected_attributes`, and we're dropping support to older versions of
Rails in main.
https://github.com/rails/protected_attributes
2025-11-14 11:24:30 -03:00
Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Lucas Mazza
656720583f
Remove assert_nothing_raised deprecated usage.
2016-06-27 16:48:12 -03:00
Lucas Mazza
3f3ec236bb
Move Devise::TestHelpers to Devise::Test::ControllerHelpers.
2016-05-15 19:36:41 -03:00
Lucas Mazza
13285d7ef3
Remove a few Ruby syntax warnings from the test suite.
2016-05-02 10:47:05 -03:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Nicolas Viennot
c22e7133b6
Removes the bang in confirm! and reset_password!
...
Closes #3412 and #3570 .
2015-04-19 11:47:44 -04:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Lucas Mazza
7b66133861
Remove subscriber block so it won't leak across the test suite.
2014-01-04 19:01:05 +03:00
Vipul A M
ae6a37f796
Cleanup tests for unused variables
2013-09-15 01:52:53 +05:30
Drew Ulmer
e029ad7b0c
Fix improper login param sanitization permit
...
This includes a failing test case that hooks into ActiveSupport
Notifications to catch the param permit error.
2013-06-25 13:44:39 -05:00
Vasiliy Ermolovich
61903b534a
don't delete the return to url from session if the requested format is not navigational
...
closes #2122
2012-11-04 23:42:38 +03:00
mathieul
95f20587ef
test that destroying a session doesn't set the flash if the requested format is not navigational
2012-06-23 14:43:35 -07:00
José Valim
2b7328535d
Check for the request before checking for the mapping, closes #1859
2012-05-25 09:39:50 +02:00
Christopher Meiklejohn
eb4e23274d
Ensure ActiveRecord is defined, which is not true when running Mongoid tests.
2012-04-07 15:54:00 -03:00
José Valim
b74f71fbed
Fix build so it works with Rails 3.1.
2012-03-26 18:50:39 +03:00
David FRANCOIS
885d8836d1
Ability to use attr_protected attributes as sign-in keys without triggering ActiveModel::MassAssignmentSecurity::Error when ActiveRecord::Base.mass_assignment_sanitizer is set to :strict. Fixes #1729 .
2012-03-21 11:48:00 +01:00
José Valim
c6dd846718
Move the catch to the test level.
2011-04-17 19:37:19 +02:00
José Valim
c608fbe89e
Rollback to require 'test_helper'. If you want to run it in isolation, do ruby -Itest path/to/test/file.
2011-04-15 10:48:44 +02:00
John Wilger
e4af6adaf7
Added test showing previously incorrect behavior of Devise::SessionsController#create
2011-04-15 16:37:15 +08:00