Sha256: d4eaac0b0af9f1346cdb4e96923c0adc58c2f4aac6bf1197860ad2e4667b5a0b

Contents?: true

Size: 599 Bytes

Versions: 21

Compression:

Stored size: 599 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

21 entries across 20 versions & 4 rubygems

Version Path
yard-0.9.24 spec/cli/graph_spec.rb
yard-0.9.23 spec/cli/graph_spec.rb
yard-0.9.22 spec/cli/graph_spec.rb
yard-0.9.21 spec/cli/graph_spec.rb
yard-0.9.20 spec/cli/graph_spec.rb
yard-0.9.19 spec/cli/graph_spec.rb
yard-0.9.16 spec/cli/graph_spec.rb
yard-0.9.15 spec/cli/graph_spec.rb
yard-0.9.14 spec/cli/graph_spec.rb
yard-0.9.13 spec/cli/graph_spec.rb
yard-0.9.12 spec/cli/graph_spec.rb
yard-0.9.11 spec/cli/graph_spec.rb
yard-0.9.10 spec/cli/graph_spec.rb
yard-0.9.9 spec/cli/graph_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/cli/graph_spec.rb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/cli/graph_spec.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/cli/graph_spec.rb
yard-0.9.8 spec/cli/graph_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/spec/cli/graph_spec.rb
yard-0.9.7 spec/cli/graph_spec.rb