Sha256: 22be7223e8f53256a7a1674063f859a6f71c0245fda9f4abe4cf7c526ba49a95

Contents?: true

Size: 516 Bytes

Versions: 19

Compression:

Stored size: 516 Bytes

Contents

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

class PrmdCliGenerateTest < Minitest::Test
  include CliBaseTestHelpers

  def command_module
    Prmd::CLI::Generate
  end

  def argv_for_test_run
    ['-y',
     'bread',
     '-o', 'schema/bread.yml']
  end

  def validate_parse_options(options)
    assert_equal true, options[:yaml]
    assert_equal ['bread'], options[:argv]
    assert_equal 'schema/bread.yml', options[:output_file]
    super
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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