[devdocsgjs/main: 664/1867] Fix tests




commit b31dc9d0c2338f831d87608a5c078f6e582b9ac6
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Wed Jul 17 22:44:48 2019 +0200

    Fix tests

 test/lib/docs/core/scrapers/file_scraper_test.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/lib/docs/core/scrapers/file_scraper_test.rb 
b/test/lib/docs/core/scrapers/file_scraper_test.rb
index 7d90d262..88b5e8d5 100644
--- a/test/lib/docs/core/scrapers/file_scraper_test.rb
+++ b/test/lib/docs/core/scrapers/file_scraper_test.rb
@@ -63,7 +63,7 @@ class FileScraperTest < MiniTest::Spec
       end
 
       it "reads a file" do
-        mock(scraper).read_file(path)
+        mock(scraper).read_file(File.join(ROOT_PATH, 'docs/scraper', path))
         result
       end
 
@@ -165,7 +165,7 @@ class FileScraperTest < MiniTest::Spec
 
   describe "#read_file" do
     let :result do
-      scraper.send :read_file, 'file'
+      scraper.send :read_file, File.join(ROOT_PATH, 'docs', 'scraper', 'file')
     end
 
     it "returns the file's content when the file exists in the source directory" do


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]