Skip to content

Commit

Permalink
Update to the newer module for the devise test helpers
Browse files Browse the repository at this point in the history
Devise 4.2.0 deprecated the Devise::TestHelpers module in favour of the
Devise::Test::ControllerHelpers module, which is because they wanted to
split the different test helpers into different modules.

https://github.com/heartcombo/devise/blob/main/CHANGELOG.md#420---2016-07-01
  • Loading branch information
bagedevimo committed Jan 16, 2024
1 parent 760c939 commit 5eb8113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
FixturesSpecHelper.destroy
end

config.include Devise::TestHelpers, :type => :controller
config.include Devise::Test::ControllerHelpers, :type => :controller
config.include FixturesSpecHelper, :type => :controller # supply fixtures variables
config.include ControllersSpecHelper, :type => :controller # some macros for testing controllers
config.render_views # don't stub views when testing controllers
Expand Down

0 comments on commit 5eb8113

Please sign in to comment.