mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Move disabling timestamp check to the spec helper
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
InvisibleCaptcha.setup do |config|
|
||||
# Disable timestamp check for test environment
|
||||
config.timestamp_enabled = !Rails.env.test?
|
||||
end
|
||||
@@ -55,6 +55,9 @@ I18n.exception_handler = proc do |exception, *_|
|
||||
raise exception.to_exception
|
||||
end
|
||||
|
||||
# Disable timestamp check for test environment
|
||||
InvisibleCaptcha.timestamp_enabled = false
|
||||
|
||||
RSpec.configure do |config|
|
||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||
config.fixture_path = "#{Rails.root.join('spec/fixtures')}"
|
||||
|
||||
Reference in New Issue
Block a user