Skip to content

Commit

Permalink
Hound fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Galarza committed Mar 4, 2016
1 parent d0b5169 commit bbe17eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion spec/support/http_method_shim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbe17eb

Please sign in to comment.