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
yard-0.8.7.6 spec/cli/graph_spec.rb
yard-0.8.7.5 spec/cli/graph_spec.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
yard-0.8.7.4 spec/cli/graph_spec.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/spec/cli/graph_spec.rb
yard-0.8.7.3 spec/cli/graph_spec.rb
yard-0.8.7.2 spec/cli/graph_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/yard-0.8.7/spec/cli/graph_spec.rb
candlepin-api-0.4.0 bundle/ruby/gems/yard-0.8.7/spec/cli/graph_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/yard-0.8.7/spec/cli/graph_spec.rb
yard-0.8.7.1 spec/cli/graph_spec.rb