Sha256: 6d96810cf5cba137411a54dc414580f0a6e7490a92def5ebbb9d1af8712967f8

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

RSpec.describe YARD::CLI::Graph do
  it "serializes output" do
    allow(Registry).to receive(:load).at_least(1).times
    allow(subject).to receive(:yardopts) { [] }
    expect(subject.options.serializer).to receive(:serialize).once
    subject.run
  end

  it "reads yardoc file from .yardopts" do
    allow(Registry).to receive(:load).at_least(1).times
    allow(subject).to receive(:yardopts) { %w(--db /path/to/db) }
    expect(subject.options.serializer).to receive(:serialize).once
    subject.run
    expect(Registry.yardoc_file).to eq '/path/to/db'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-0.9.18 spec/cli/graph_spec.rb
yard-0.9.17 spec/cli/graph_spec.rb