Sha256: 9fc69cc49e1b0ade9cb212a8cb240db661c890791b5d1a22b8c58f7b8d1dd184
Contents?: true
Size: 887 Bytes
Versions: 2
Compression:
Stored size: 887 Bytes
Contents
# frozen_string_literal: true require "minitest/autorun" require "minitest/reporters" require "minitest/hooks/default" require "bridgetown" Bridgetown.begin! require File.expand_path("../lib/bridgetown-sitemap", __dir__) # Report with color. Minitest::Reporters.use! [ Minitest::Reporters::DefaultReporter.new( color: true ), ] class BridgetownSitemap::Test < Minitest::Test extend Minitest::Spec::DSL include Minitest::Hooks ROOT_DIR = File.expand_path("fixtures", __dir__) SOURCE_DIR = File.join(ROOT_DIR, "src") DEST_DIR = File.expand_path("dest", __dir__) def root_dir(*files) File.join(ROOT_DIR, *files) end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-sitemap-2.0.2 | test/helper.rb |
bridgetown-sitemap-2.0.1 | test/helper.rb |