Sha256: 374cd5db98c952fd20f5bf8d1cbb6a35beb92a7c9be6cfb87da17bbc6f9e2c32

Contents?: true

Size: 869 Bytes

Versions: 1

Compression:

Stored size: 869 Bytes

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'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  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__)
  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 site_configuration(overrides = {})
    Jekyll::Configuration::DEFAULTS.deep_merge(overrides).deep_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.0.0.rc1 spec/spec_helper.rb