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