diff --git a/lib/docs/core/scrapers/url_scraper.rb b/lib/docs/core/scrapers/url_scraper.rb index 58f8fa73..cb918b1b 100644 --- a/lib/docs/core/scrapers/url_scraper.rb +++ b/lib/docs/core/scrapers/url_scraper.rb @@ -17,8 +17,8 @@ module Docs Request.run url, request_options end - def request_all(url, &block) - Requester.run url, request_options: request_options, &block + def request_all(urls, &block) + Requester.run urls, request_options: request_options, &block end def request_options diff --git a/test/lib/docs/core/scrapers/url_scraper_test.rb b/test/lib/docs/core/scrapers/url_scraper_test.rb index c297a5b1..35867880 100644 --- a/test/lib/docs/core/scrapers/url_scraper_test.rb +++ b/test/lib/docs/core/scrapers/url_scraper_test.rb @@ -50,11 +50,11 @@ class DocsUrlScraperTest < MiniTest::Spec end let :result do - scraper.send :request_all, 'url', &block + scraper.send :request_all, 'urls', &block end - it "runs a Requester with the given url" do - mock(Docs::Requester).run 'url', anything + it "runs a Requester with the given urls" do + mock(Docs::Requester).run 'urls', anything result end @@ -65,7 +65,7 @@ class DocsUrlScraperTest < MiniTest::Spec end it "runs a Requester with the given block" do - mock(Docs::Requester).run.with_any_args { |*args| @block = args.last } + stub(Docs::Requester).run { |*args| @block = args.last } result assert_equal block, @block end