Created
April 6, 2016 22:03
-
-
Save igorkasyanchuk/d1e68a846626aafa3e555f17663fe607 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 FixLocalesSpecs | |
module ::ActionController::TestCase::Behavior | |
alias_method :process_without_logging, :process | |
def process(action, http_method = 'GET', *args) | |
e = Array.wrap(args).compact | |
e[0] ||= {} | |
e[0].merge!({locale: I18n.locale}) | |
process_without_logging(action, http_method, *e) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment