From a515299b4a14caacf9712eed33ce54621f107bf9 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Thu, 5 Dec 2024 19:49:10 +0530 Subject: [PATCH] Clean up test-helper --- test/helper.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/helper.rb b/test/helper.rb index 65eec47..4ec0b8b 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -7,14 +7,10 @@ require "minitest/autorun" require "shoulda/context" -$LOAD_PATH.unshift(File.join(__dir__, "..", "lib")) -$LOAD_PATH.unshift(__dir__) +require_relative "../lib/jekyll-archives" -require "jekyll-archives" - -TEST_DIR = __dir__ -SOURCE_DIR = File.expand_path("source", TEST_DIR) -DEST_DIR = File.expand_path("destination", TEST_DIR) +SOURCE_DIR = File.expand_path("source", __dir__) +DEST_DIR = File.expand_path("destination", __dir__) module Minitest class Test