Sha256: 131aa9d6438dc67744b4a72f3b6529bd59838083e0c07d8a5c56ba8815952d17

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

require "spec_helper"

describe Jekyll:Jekyll_Pubmed do
  let(:overrides) { Hash.new }
  let(:config) do
    Jekyll.configuration(Jekyll::Utils.deep_merge_hashes({
      "full_rebuild" => true,
      "source"      => source_dir,
      "destination" => dest_dir,
      "url"         => "http://example.org",
      "name"       => "My awesome site",
      "author"      => {
        "name"        => "Dr. Jekyll"
      },
      "collections" => {
        "my_collection" => { "output" => true },
        "other_things"  => { "output" => false }
      },
      "jekyll_pubmed" => {
        "data" => "publications",
        "term" => "Wimalanathan K"
      }
    }, overrides))
  end
  let(:site)     { Jekyll::Site.new(config) }
  let(:context)  { make_context(site: site) }
  before(:each) do
    site.process
  end
  it "creates publications" do
    expect(Pathname.new(dest_dir("publications/index.html"))).to exist
  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-pubmed-0.1.2 spec/jekyll-pubmed_spec.rb
jekyll-pubmed-0.1.1 spec/jekyll-pubmed_spec.rb