Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 11, 2022
1 parent 2a66455 commit ff190dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rack/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def initialize(mock_session)
@rack_mock_session = mock_session
end

%w[get post put patch delete options head].each do |meth|
%w[get post put patch delete options head].each do |method_name|
class_eval(<<-END, __FILE__, __LINE__+1)
def #{meth}(uri, params = {}, env = {}, &block)
custom_request('#{meth.upcase}', uri, params, env, &block)
def #{method_name}(uri, params = {}, env = {}, &block)
custom_request('#{method_name.upcase}', uri, params, env, &block)
end
END
end
Expand Down

0 comments on commit ff190dd

Please sign in to comment.