Sha256: f10c5901839f18b58c5edaf3cdc82443fd9db94abcf903b444ba8e37d220cd87
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
# frozen_string_literal: true lib = File.expand_path('../lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) # Don't use coveralls in Github Actions unless ENV['GITHUB_ACTIONS'] require 'coveralls' Coveralls.wear! end require 'minitest' require 'tmpdir' require 'jekyll-diagrams' TEST_DIR = File.join(Dir.tmpdir, 'jekyll-diagrams-features') Before do FileUtils.rm_rf(TEST_DIR) if File.exist?(TEST_DIR) FileUtils.mkdir_p(TEST_DIR) Dir.chdir(TEST_DIR) end After do if File.exist?(TEST_DIR) Dir.chdir(File.dirname(TEST_DIR)) FileUtils.rm_rf(TEST_DIR) end end def run_jekyll options = Jekyll.configuration( source: TEST_DIR, quiet: true, liquid: { 'error_mode' => 'strict' } ) Jekyll::Site.new(options).process end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.9.3 | features/support/env.rb |