Sha256: 356932244f7f6acd7d77f4523cac7adbe6781106561221b9161da344f2147cfe

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

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 FixturesHelpers
  config.extend  FixturesHelpers

  config.disable_monkey_patching!

  config.before(:all) do
    if Gem::Version.new("2") <= Gem::Version.new(Jekyll::VERSION)
      Jekyll.logger.log_level = :warn
    else
      Jekyll.logger.log_level = Jekyll::Stevenson::WARN
    end

    @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

11 entries across 11 versions & 1 rubygems

Version Path
jekyll-assets-0.13.0 spec/spec_helper.rb
jekyll-assets-0.12.1 spec/spec_helper.rb
jekyll-assets-0.12.0 spec/spec_helper.rb
jekyll-assets-0.11.0 spec/spec_helper.rb
jekyll-assets-0.10.1 spec/spec_helper.rb
jekyll-assets-0.10.0 spec/spec_helper.rb
jekyll-assets-0.9.2 spec/spec_helper.rb
jekyll-assets-0.9.1 spec/spec_helper.rb
jekyll-assets-0.9.0 spec/spec_helper.rb
jekyll-assets-0.8.1 spec/spec_helper.rb
jekyll-assets-0.8.0 spec/spec_helper.rb