Sha256: d7bdfabf7d0b794c9a9abcf8d431e2889a88267967c0e77cf9ec8dd770e93221

Contents?: true

Size: 529 Bytes

Versions: 46

Compression:

Stored size: 529 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe YARD::CLI::Graph do
  it "should serialize output" do
    Registry.should_receive(:load).at_least(1).times
    subject.stub(:yardopts) { [] }
    subject.options.serializer.should_receive(:serialize).once
    subject.run
  end

  it 'should read yardoc file from .yardopts' do
    subject.stub(:yardopts) { %w(--db /path/to/db) }
    subject.options.serializer.should_receive(:serialize).once
    subject.run
    Registry.yardoc_file.should == '/path/to/db'
  end
end

Version data entries

46 entries across 38 versions & 7 rubygems

Version Path
challah-0.9.1.beta vendor/bundle/gems/yard-0.8.3/spec/cli/graph_spec.rb
challah-0.9.0 vendor/bundle/gems/yard-0.8.3/spec/cli/graph_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.3/spec/cli/graph_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.3/spec/cli/graph_spec.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.3/spec/cli/graph_spec.rb
yard-0.8.3 spec/cli/graph_spec.rb