Skip to content

Commit b31dc9d

Browse files
committed
Fix tests
1 parent 8325ed7 commit b31dc9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib/docs/core/scrapers/file_scraper_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Scraper < Docs::FileScraper
6363
end
6464

6565
it "reads a file" do
66-
mock(scraper).read_file(path)
66+
mock(scraper).read_file(File.join(ROOT_PATH, 'docs/scraper', path))
6767
result
6868
end
6969

@@ -165,7 +165,7 @@ class Scraper < Docs::FileScraper
165165

166166
describe "#read_file" do
167167
let :result do
168-
scraper.send :read_file, 'file'
168+
scraper.send :read_file, File.join(ROOT_PATH, 'docs', 'scraper', 'file')
169169
end
170170

171171
it "returns the file's content when the file exists in the source directory" do

0 commit comments

Comments
 (0)