Sha256: d4d473dcdb9ebc598d96fa9cb6335d736e196606307acbade618559b463bc71c

Contents?: true

Size: 637 Bytes

Versions: 7

Compression:

Stored size: 637 Bytes

Contents

require "test_helper"
require "./lib/roger/cli"

require File.dirname(__FILE__) + "/../../helpers/cli"

module Roger
  # These tests ar for the roger generate command
  class CliGenerateTest < ::Test::Unit::TestCase
    include TestCli

    def setup
      @base_path = File.dirname(__FILE__) + "/../../project"
    end

    # roger generate
    def test_has_generate_command
      assert_includes Cli::Base.tasks.keys, "generate"
    end

    def test_help_shows_available_generators
      out, _err = run_command %w(help generate)

      assert_includes out, "generate new"
      assert_includes out, "generate mock"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roger-1.10.0 test/unit/cli/cli_generate_test.rb
roger-1.9.1 test/unit/cli/cli_generate_test.rb
roger-1.9.0 test/unit/cli/cli_generate_test.rb
roger-1.8.0 test/unit/cli/cli_generate_test.rb
roger-1.7.2 test/unit/cli/cli_generate_test.rb
roger-1.7.1 test/unit/cli/cli_generate_test.rb
roger-1.7.0 test/unit/cli/cli_generate_test.rb