Sha256: e7537e0fdc00bbaedf7beaa554e04a30d67963257becc497bbe851d42cbbf343

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

require "jekyll"
require "typhoeus" unless Gem.win_platform?
require "nokogiri"
require "rss"
require File.expand_path("../lib/jekyll-feed", __dir__)

Jekyll.logger.log_level = :error

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = "random"

  SOURCE_DIR = File.expand_path("fixtures", __dir__)
  DEST_DIR   = File.expand_path("dest",     __dir__)

  def source_dir(*files)
    File.join(SOURCE_DIR, *files)
  end

  def dest_dir(*files)
    File.join(DEST_DIR, *files)
  end

  def make_context(registers = {})
    Liquid::Context.new({}, {}, { :site => site }.merge(registers))
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rams-jekyll-feed-0.13.0 spec/spec_helper.rb
jekyll-feed-0.13.0 spec/spec_helper.rb
jekyll-feed-0.12.1 spec/spec_helper.rb
jekyll-feed-0.12.0 spec/spec_helper.rb