Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jorgemanrubia/a5154904cf486df45ce92ca529b01e8b to your computer and use it in GitHub Desktop.
Save jorgemanrubia/a5154904cf486df45ce92ca529b01e8b to your computer and use it in GitHub Desktop.
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