History

Fix default argument assignment for Ruby 2.2

Thibaut committed 11 years ago

Commit a9c8c221 parent 18b772f1 file · +1 −1Browse files

Unified · Split

test/lib/docs/core/request_test.rb+1−1
@@ -6,7 +6,7 @@ class DocsRequestTest < MiniTest::Spec · 5 unmodified lines
6 'http://example.com'6 'http://example.com'
7 end7 end
8 8
9 def request(url = url, options = {})9 def request(url = self.url, options = {})
10 Docs::Request.new(url, options).tap do |request|10 Docs::Request.new(url, options).tap do |request|
11 request.extend FakeInstrumentation11 request.extend FakeInstrumentation
12 end12 end