Sha256: 0b508bb08af82eaa0e621ab314a85b293d363be68349031591a1b8ecbfb94c76
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 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.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
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
tgfa-jekyll-assets-0.7.9.2 | spec/spec_helper.rb |
tgfa-jekyll-assets-0.7.9.1 | spec/spec_helper.rb |
jekyll-assets-0.7.9 | spec/spec_helper.rb |
jekyll-assets-0.7.8 | spec/spec_helper.rb |