Sha256: 940e151c457e4b6ca1866a5496194fafc8001380c7b560048d50aa0151699b63

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

require "rubygems"


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

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-assets-0.3.5 spec/spec_helper.rb
jekyll-assets-0.3.4 spec/spec_helper.rb
jekyll-assets-0.3.3 spec/spec_helper.rb
jekyll-assets-0.3.2 spec/spec_helper.rb
jekyll-assets-0.3.1 spec/spec_helper.rb