Sha256: dd29d370cb4618fcd5ef506c8768e57c1958b4c6fbcb7465298992f3fdfbc28d
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true require "jekyll" require File.expand_path("lib/jekyll-redirect-from.rb") RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.expect_with :rspec do |c| c.syntax = :expect end config.before(:each) do Jekyll.logger.log_level = :error dest_path.rmtree if dest_path.exist? site.reset end config.after(:each) do dest_path.rmtree if dest_path.exist? end def fixtures_path Pathname.new(__dir__).join("fixtures") end def dest_path Pathname.new(site.dest) end def dest_dir(*paths) dest_path.join(*paths) end def config Jekyll.configuration({ "source" => fixtures_path.to_s, "destination" => fixtures_path.join("_site").to_s, "collections" => { "articles" => { "output" => true }, "authors" => {}, }, "url" => "http://jekyllrb.com", "gems" => [ "jekyll-redirect-from", "jekyll-sitemap", ], "defaults" => [{ "scope" => { "path" => "" }, "values" => { "layout" => "layout" }, },], }).backwards_compatibilize end def site @site ||= Jekyll::Site.new(config) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-redirect-from-0.14.0 | spec/spec_helper.rb |
jekyll-redirect-from-0.13.0 | spec/spec_helper.rb |