Sha256: 72a67a0e8a17e1c50be316e55ea09d0211111c82c83ce6b0e63178e4e336913b

Contents?: true

Size: 681 Bytes

Versions: 19

Compression:

Stored size: 681 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'helpers'))
require 'prmd/cli/doc'

class PrmdCliDocTest < Minitest::Test
  include CliBaseTestHelpers

  def command_module
    Prmd::CLI::Doc
  end

  def argv_for_test_run
    ['-s', input_schemas_path('doc-settings.json'),
     '-p', 'overview.txt',
     'schema/api.json',
     '-o', 'schema/verified-api.json']
  end

  def validate_parse_options(options)
    assert_equal 'application/bread', options[:content_type]
    assert_equal ['overview.txt'], options[:prepend]
    assert_equal 'schema/verified-api.json', options[:output_file]
    assert_equal ['schema/api.json'], options[:argv]
    super
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
prmd-0.11.10 test/cli/doc_test.rb
prmd-0.11.9 test/cli/doc_test.rb
prmd-0.11.8 test/cli/doc_test.rb
prmd-0.11.7 test/cli/doc_test.rb
prmd-0.11.6 test/cli/doc_test.rb
prmd-0.11.5 test/cli/doc_test.rb
prmd-0.11.4 test/cli/doc_test.rb
prmd-0.11.3 test/cli/doc_test.rb
prmd-0.11.2 test/cli/doc_test.rb
prmd-0.11.1 test/cli/doc_test.rb
prmd-0.11.0 test/cli/doc_test.rb
prmd-0.10.0 test/cli/doc_test.rb
prmd-0.9.0 test/cli/doc_test.rb
prmd-0.8.0 test/cli/doc_test.rb
prmd-0.7.4 test/cli/doc_test.rb
prmd-0.7.3 test/cli/doc_test.rb
prmd-0.7.2 test/cli/doc_test.rb
prmd-0.7.1 test/cli/doc_test.rb
prmd-0.7.0 test/cli/doc_test.rb