From af6d2d402854a9fc0b8ecc9c8f3cfa036583a19b Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalchuk Date: Tue, 14 Nov 2017 18:55:44 +0200 Subject: [PATCH] Execute FileInfo tests in source_dir (#46) Merge pull request 46 --- spec/file_info_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/file_info_spec.rb b/spec/file_info_spec.rb index a89e447..a05c934 100644 --- a/spec/file_info_spec.rb +++ b/spec/file_info_spec.rb @@ -1,4 +1,9 @@ RSpec.describe(Jekyll::Compose::FileInfo) do + before(:all) do + FileUtils.mkdir_p source_dir unless File.directory? source_dir + Dir.chdir source_dir + end + describe "#content" do context "with a title of only words" do let(:expected_result) do