Compare commits

..

3 Commits

Author SHA1 Message Date
Carlos Antonio da Silva
e9c534d363 Fix "Test is missing assertions" warnings
`test_set_null_fields_on_migrations`
      ./devise/test/models_test.rb:87
    `test_does_not_crash_when_the_last_request_at_is_a_String`
      ./devise/test/integration/timeoutable_test.rb:191
    `test_defined_Warden_after_authentication_callback_should_not_be_called_when_sign_in_is_called`
      ./devise/test/test/controller_helpers_test.rb:114
    `test_defined_Warden_before_logout_callback_should_not_be_called_when_sign_out_is_called`
      ./devise/test/test/controller_helpers_test.rb:128
2026-01-05 18:16:22 -03:00
Carlos Antonio da Silva
731074bf09 Stop updating copyright every year [ci skip] 2026-01-05 10:02:56 -03:00
Carlos Antonio da Silva
35920d27e5 Exclude Rails main + Ruby 3.2
It dropped support to Ruby 3.2 which is expected to be EOL by
2026-03-31.
2026-01-05 09:55:48 -03:00
6 changed files with 11 additions and 7 deletions

View File

@@ -30,6 +30,8 @@ jobs:
ruby: '3.0'
- gemfile: Gemfile
ruby: '2.7'
- gemfile: gemfiles/Gemfile-rails-main
ruby: '3.2'
- gemfile: gemfiles/Gemfile-rails-main
ruby: '3.1'
- gemfile: gemfiles/Gemfile-rails-main

View File

@@ -1,4 +1,4 @@
Copyright (c) 2020-2025 Rafael França, Carlos Antonio da Silva
Copyright (c) 2020-CURRENT Rafael França, Carlos Antonio da Silva
Copyright (c) 2009-2019 Plataformatec
Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -770,7 +770,7 @@ https://github.com/wardencommunity/warden
## License
MIT License.
Copyright 2020-2025 Rafael França, Carlos Antonio da Silva.
Copyright 2020-CURRENT Rafael França, Carlos Antonio da Silva.
Copyright 2009-2019 Plataformatec.
The Devise logo is licensed under [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License](https://creativecommons.org/licenses/by-nc-nd/4.0/).

View File

@@ -191,7 +191,9 @@ class SessionTimeoutTest < Devise::IntegrationTest
test 'does not crash when the last_request_at is a String' do
user = sign_in_as_user
get edit_form_user_path(user, last_request_at: Time.now.utc.to_s)
get users_path
assert_nothing_raised do
get edit_form_user_path(user, last_request_at: Time.now.utc.to_s)
get users_path
end
end
end

View File

@@ -90,7 +90,7 @@ class ActiveRecordTest < ActiveSupport::TestCase
def send_devise_notification(*); end
end
klass.create!
assert_nothing_raised { klass.create! }
end
end

View File

@@ -112,7 +112,7 @@ class TestControllerHelpersTest < Devise::ControllerTestCase
end
test "defined Warden after_authentication callback should not be called when sign_in is called" do
begin
assert_nothing_raised do
Warden::Manager.after_authentication do |user, auth, opts|
flunk "callback was called while it should not"
end
@@ -126,7 +126,7 @@ class TestControllerHelpersTest < Devise::ControllerTestCase
end
test "defined Warden before_logout callback should not be called when sign_out is called" do
begin
assert_nothing_raised do
Warden::Manager.before_logout do |user, auth, opts|
flunk "callback was called while it should not"
end