# coding: utf-8 require "asciidoctor-bibliography" describe "a typical usage of nocite" do let(:document) do input = <<~'ASCIIDOC' :bibliography-database: ./spec/fixtures/database.bib :bibliography-style: apa == Hidden citations Nothing here: nocite:[Lane12a]. Nothing here: nocite:[Erdos65]+special[Einstein35]. == Default bibliography bibliography::[] == Special bibliography bibliography::special[] ASCIIDOC document = ::Asciidoctor::Document.new(input) document.parse document end it "hides citations and show references" do expect(document.convert).to eq <<~HTML.rstrip
Nothing here: . Nothing here: .