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