Sha256: bc5f5429034107cb639719183b79064de610a0294858a0a005e8aef7ab6b8c49

Contents?: true

Size: 877 Bytes

Versions: 12

Compression:

Stored size: 877 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
    @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

12 entries across 12 versions & 1 rubygems

Version Path
jekyll-assets-0.4.3 spec/spec_helper.rb
jekyll-assets-0.5.4 spec/spec_helper.rb
jekyll-assets-0.5.3 spec/spec_helper.rb
jekyll-assets-0.5.2 spec/spec_helper.rb
jekyll-assets-0.5.1 spec/spec_helper.rb
jekyll-assets-0.5.0 spec/spec_helper.rb
jekyll-assets-0.4.2 spec/spec_helper.rb
jekyll-assets-0.4.1 spec/spec_helper.rb
jekyll-assets-0.4.0 spec/spec_helper.rb
jekyll-assets-0.3.8 spec/spec_helper.rb
jekyll-assets-0.3.7 spec/spec_helper.rb
jekyll-assets-0.3.6 spec/spec_helper.rb