Skip to content

Commit 2b79b8a

Browse files
committed
ruby 2.0.0 fixes
1 parent e6dad15 commit 2b79b8a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/rspec_api_documentation/dsl/endpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def query_string
6464
end
6565

6666
def params
67-
Params.new(self, example: example, extra_params: extra_params).call
67+
Params.new(self, example, extra_params).call
6868
end
6969

7070
def header(name, value)

lib/rspec_api_documentation/dsl/endpoint/params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ module Endpoint
66
class Params
77
attr_reader :example_group, :example
88

9-
def initialize(example_group, example:, extra_params:)
9+
def initialize(example_group, example, extra_params)
1010
@example_group = example_group
1111
@example = example
1212
@extra_params = extra_params
1313
end
1414

1515
def call
1616
parameters = example.metadata.fetch(:parameters, {}).inject({}) do |hash, param|
17-
SetParam.new(self, hash: hash, param: param).call
17+
SetParam.new(self, hash, param).call
1818
end
1919
parameters.deep_merge!(extra_params)
2020
parameters

lib/rspec_api_documentation/dsl/endpoint/set_param.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module RspecApiDocumentation
22
module DSL
33
module Endpoint
44
class SetParam
5-
def initialize(parent, hash:, param:)
5+
def initialize(parent, hash, param)
66
@parent = parent
77
@hash = hash
88
@param = param

0 commit comments

Comments
 (0)