Sha256: 1c5d7eddd84517e47d9a21e54308836e06daebfc24b49a9334c69a9887062c1e
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'ostruct' describe YARD::Server::Commands::LibraryCommand do before do allow(Templates::Engine).to receive(:render) allow(Templates::Engine).to receive(:generate) allow(YARD).to receive(:parse) allow(Registry).to receive(:load) allow(Registry).to receive(:save) @cmd = LibraryCommand.new(:adapter => mock_adapter) @request = mock_request("/foo", :xhr? => false) @library = OpenStruct.new(:source_path => '.') @cmd.library = @library allow(@cmd).to receive(:load_yardoc).and_return(nil) end def call expect { @cmd.call(@request) }.to raise_error(NotImplementedError) end describe "#call" do it "raises NotImplementedError" do call end it "sets :rdoc as the default markup in incremental mode" do @cmd.incremental = true call expect(@cmd.options[:markup]).to eq :rdoc end it "sets :rdoc as the default markup in regular mode" do call expect(@cmd.options[:markup]).to eq :rdoc end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.5 | spec/server/commands/library_command_spec.rb |
yard-0.9.4 | spec/server/commands/library_command_spec.rb |
yard-0.9.3 | spec/server/commands/library_command_spec.rb |