Fix default argument assignment for Ruby 2.2

pull/165/head
Thibaut 10 years ago
parent 18b772f311
commit a9c8c228bc

@ -6,7 +6,7 @@ class DocsRequestTest < MiniTest::Spec
'http://example.com' 'http://example.com'
end end
def request(url = url, options = {}) def request(url = self.url, options = {})
Docs::Request.new(url, options).tap do |request| Docs::Request.new(url, options).tap do |request|
request.extend FakeInstrumentation request.extend FakeInstrumentation
end end

Loading…
Cancel
Save