Created
May 4, 2020 11:22
-
-
Save jorgemanrubia/a5154904cf486df45ce92ca529b01e8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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