From 562a4c74fe142a5f01b4c5706c88e396fed330a1 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Wed, 11 Dec 2013 09:59:16 +0000 Subject: [PATCH] Fix failing Docs::Requester test --- test/lib/docs/core/requester_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/lib/docs/core/requester_test.rb b/test/lib/docs/core/requester_test.rb index d9c81b85..96f64c10 100644 --- a/test/lib/docs/core/requester_test.rb +++ b/test/lib/docs/core/requester_test.rb @@ -23,12 +23,12 @@ class DocsRequesterTest < MiniTest::Spec end describe ".new" do - it "defaults the :max_concurrency to 5" do - assert_equal 5, Docs::Requester.new.max_concurrency + it "defaults the :max_concurrency to 20" do + assert_equal 20, Docs::Requester.new.max_concurrency assert_equal 10, Docs::Requester.new(max_concurrency: 10).max_concurrency end - it "duplicates and stores #request_options" do + it "duplicates and stores :request_options" do options[:request_options] = { params: 'test' } assert_equal options[:request_options], requester.request_options refute_same options[:request_options], requester.request_options @@ -51,7 +51,7 @@ class DocsRequesterTest < MiniTest::Spec assert_equal url, request.base_url end - it "has the default request options" do + it "has the default :request_options" do options[:request_options] = { params: 'test' } request = requester.request(url) assert_equal 'test', request.options[:params]