Sha256: 1bae558ca39cdebbff87b7145fc5defd0edc34439c46c69327c6be8bd2ca1df1
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
# spec_helper.rb $LOAD_PATH.unshift File.expand_path("../../jekyll-pubmed", __FILE__) require "jekyll" require "jekyll-pubmed" 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", __FILE__) DEST_DIR = File.expand_path("../dest", __FILE__) def source_dir(*files) File.join(SOURCE_DIR, *files) end def dest_dir(*files) File.join(DEST_DIR, *files) end # def make_context(registers = {}, environments = {}) # Liquid::Context.new(environments, {}, # { :site => site, :page => page }.merge(registers)) # end end # CONFIG_DEFAULTS = { # "source" => source_dir, # "destination" => dest_dir, # "gems" => ["jekyll-pubmed"] # }.freeze # # def make_page(options = {}) # page = Jekyll::Page.new(site, CONFIG_DEFAULTS["source"], "", "page.md") # page.data = options # page # end # # def make_site(options = {}) # site_config = Jekyll.configuration(CONFIG_DEFAULTS.merge(options)) # Jekyll::Site.new(site_config) # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-pubmed-0.1.2 | spec/spec_helper.rb |
jekyll-pubmed-0.1.1 | spec/spec_helper.rb |