mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Add Devise System spec helpers
This is recommended when using Devise.
This commit is contained in:
@@ -23,6 +23,7 @@ Capybara.default_driver = Capybara.javascript_driver = :cuprite
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.include CupriteHelpers, type: :system
|
||||
config.include Devise::Test::IntegrationHelpers, type: :system
|
||||
|
||||
config.prepend_before(:each, type: :system) { driven_by :cuprite }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user