From bbe17ebad7f9f2702a6dfbd7efd7771e5b3fff87 Mon Sep 17 00:00:00 2001 From: Damian Galarza Date: Fri, 4 Mar 2016 16:13:12 -0500 Subject: [PATCH] Hound fixes --- spec/spec_helper.rb | 8 ++++++-- spec/support/http_method_shim.rb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fe1ce34..f10855a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -30,7 +30,11 @@ config.order = "random" if Rails::VERSION::MAJOR >= 5 - require 'rails-controller-testing' - config.include Rails::Controller::Testing::TemplateAssertions, type: :controller + require "rails-controller-testing" + + config.include( + Rails::Controller::Testing::TemplateAssertions, + type: :controller, + ) end end diff --git a/spec/support/http_method_shim.rb b/spec/support/http_method_shim.rb index 4585ff4..97dc98f 100644 --- a/spec/support/http_method_shim.rb +++ b/spec/support/http_method_shim.rb @@ -3,7 +3,7 @@ # supported in Rails 5+. Since we support back to 4, we need some sort of shim # to avoid super noisy deprecations when running tests. module HTTPMethodShim - def get(path, params=nil, headers=nil) + def get(path, params = nil, headers = nil) super(path, params: params, headers: headers) end end