Sha256: 6b34b0fe465208c78ecadbc1992cf253320b52454c316aa96847afc9835b1ab7

Contents?: true

Size: 932 Bytes

Versions: 1

Compression:

Stored size: 932 Bytes

Contents

require "rubygems"

require "simplecov"
require "coveralls"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require "jekyll"
require "liquid"
require "sprockets"

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.expand_path("../support", __FILE__) + "/**/*.rb"]
  .each { |f| require f }

RSpec.configure do |config|
  config.include Jekyll::AssetsPlugin::RSpecHelpers

  config.before(:all) do
    Jekyll.logger.log_level = Jekyll::Stevenson::WARN

    @dest = fixtures_path.join("_site")
    @site = Jekyll::Site.new(Jekyll.configuration({
      "source"      => fixtures_path.to_s,
      "destination" => @dest.to_s
    }))

    @dest.rmtree if @dest.exist?
    @site.process
  end

  config.after(:all) do
    @dest.rmtree if @dest.exist?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-assets-0.7.7 spec/spec_helper.rb