Skip to content

Commit

Permalink
Merge tonsky#210
Browse files Browse the repository at this point in the history
210: Avoid Rubocop warnings r=bronzdoc a=olleolleolle

This PR avoids the warnings output from Rubocop

```
..................................spec/support/simple_server.rb: Style/MethodName has the wrong namespace - should be Naming
..spec/support/slow_simple_server.rb: Style/MethodName has the wrong namespace - should be Naming
.................................................................```

Co-authored-by: Olle Jonsson <[email protected]>
  • Loading branch information
bundlerbot[bot] and olleolleolle committed Dec 10, 2018
2 parents 401ec1c + 811b3cd commit 850de98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/support/simple_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def initialize(_, server)
super
end

def do_GET(request, response) # rubocop:disable Style/MethodName
def do_GET(request, response) # rubocop:disable Naming/MethodName
if @simple_server.routes.include?(request.path)
@simple_server.routes[request.path].call request, response
else
Expand Down
2 changes: 1 addition & 1 deletion spec/support/slow_simple_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(_, server)
super
end

def do_GET(request, response) # rubocop:disable Style/MethodName
def do_GET(request, response) # rubocop:disable Naming/MethodName
sleep(0.3)
@simple_server.routes[request.path].call request, response
end
Expand Down

0 comments on commit 850de98

Please sign in to comment.