Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module DisableReloaderWhileRunningTests
extend ActiveSupport::Concern
included do
setup do
@reloader_check = Rails.application.reloader.check
Rails.application.reloader.check = -> { false}
end
teardown do
Rails.application.reloader.check = @reloader_check
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment