Skip to content

Commit d5fe55d

Browse files
author
github-actions
committed
update with project-syncing action
1 parent 01e2c02 commit d5fe55d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/rails_helper.rb

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
# Suppress RSpec warnings about potential false positives
3838
RSpec::Expectations.configuration.on_potential_false_positives = :nothing
3939

40+
# Devise sign in helpers
41+
config.include Devise::Test::ControllerHelpers, type: :controller
42+
config.include Devise::Test::ControllerHelpers, type: :view
43+
# Rails 8 issue: https://github.com/heartcombo/devise/issues/5705
44+
config.before(:each, type: :controller) do
45+
Rails.application.reload_routes_unless_loaded
46+
end
47+
4048
# Shoulda matchers for association accessor specs
4149
config.include(Shoulda::Matchers::ActiveRecord, type: :model)
4250

0 commit comments

Comments
 (0)