0👍
✅
I seem to have fixed this issue. I’ve tried a couple things mentioned in this SO answer. As far as I can tell, what fixed it was fixing my configuration from:
RSpec.configure do |config|
config.include Warden::Test::Helpers
end
to
RSpec.configure do |config|
config.include Devise::Test::IntegrationHelpers, type: :system
end
This also allowed me to drop:
after(:each) do
Warden.test_reset!
end
in all my tests. I’ve run quite a few tests and they don’t fail anymore, so I am for now assuming this has been indeed fixed.
Source:stackexchange.com