Skip to content

Commit

Permalink
Simplify getting absolute destination pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
tkareine committed Aug 27, 2023
1 parent a298314 commit 13a100f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def run_jekyll_in_fixture_site(command)
Dir.chdir('test/fixture/site')
FileUtils.rm_rf('_site')

minifier_cmd = File.expand_path(File.join(File.dirname(__FILE__), 'test/fixture/site/_bin/remove_comments'))
minifier_cmd = File.expand_path('test/fixture/site/_bin/remove_comments', File.dirname(__FILE__))
env = {
'JEKYLL_MINIBUNDLE_CMD_JS' => minifier_cmd,
'JEKYLL_MINIBUNDLE_CMD_CSS' => minifier_cmd,
'RUBYLIB' => File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
'RUBYLIB' => File.expand_path('lib', File.dirname(__FILE__))
}
jekyll_cmd = "jekyll #{command}"

Expand Down
2 changes: 1 addition & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestCase < ::Minitest::Test

FakeSite = Struct.new('FakeSite', :config, :source, :static_files)

FIXTURE_DIR = File.expand_path(File.join(File.dirname(__FILE__), '../fixture'))
FIXTURE_DIR = File.expand_path('../fixture', File.dirname(__FILE__))

def site_fixture_path(*args)
File.join(FIXTURE_DIR, 'site', *args)
Expand Down

0 comments on commit 13a100f

Please sign in to comment.