Sha256: b7c37a2f68e8cdca3546b37c5c0b733fadae6a2c0a7dbd8e34645fb9f6026e2c
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# coding: utf-8 require 'fileutils' require 'jekyll' lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'jekyll-sass-converter' if Jekyll::VERSION > "1" Jekyll.logger.log_level = :error else Jekyll.logger.log_level = Jekyll::Stevenson::ERROR end RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random' SOURCE_DIR = File.expand_path("../source", __FILE__) DEST_DIR = File.expand_path("../dest", __FILE__) SASS_LIB_DIR = File.expand_path("../other_sass_library", __FILE__) FileUtils.rm_rf(DEST_DIR) FileUtils.mkdir_p(DEST_DIR) def source_dir(*files) File.join(SOURCE_DIR, *files) end def dest_dir(*files) File.join(DEST_DIR, *files) end def sass_lib(*files) File.join(SASS_LIB_DIR, *files) end def site_configuration(overrides = {}) Jekyll.configuration(overrides.merge({ "source" => source_dir, "destination" => dest_dir })) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-sass-converter-1.1.0 | spec/spec_helper.rb |