Sha256: 10790daecdb2c749ec155df895bc17bbb3f0ad549a074cc9e9dd67af3b9d015e
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
require File.dirname(__FILE__) + "/spec_helper" describe YARD::Server do describe ".register_static_path" do it "registers a static path" do YARD::Server.register_static_path 'foo' expect(YARD::Server::Commands::StaticFileCommand::STATIC_PATHS.last).to eq "foo" end it "does not duplicate paths" do paths = YARD::Server::Commands::StaticFileCommand::STATIC_PATHS count = paths.size YARD::Server.register_static_path 'foo2' YARD::Server.register_static_path 'foo2' expect(paths.size).to eq(count + 1) expect(paths.last).to eq 'foo2' end end end
Version data entries
7 entries across 6 versions & 2 rubygems