Sha256: 90e16e1815fc32d49817796342fccb9718e002961e96c6ab6d47e9346d0f1f7e

Contents?: true

Size: 784 Bytes

Versions: 7

Compression:

Stored size: 784 Bytes

Contents

# frozen_string_literal: true

require File.join(File.dirname(__FILE__), 'test_helper')

describe 'config_group' do
  describe 'list' do
    before do
      @cmd = %w[config-group list]
      @config_groups = [{
                          id: 1,
                          name: 'config-group-test',
                        }]
    end

    it 'should return a list of config groups' do
      api_expects(:config_groups, :index, 'List config groups').returns(@config_groups)

      output = IndexMatcher.new([
                                  %w[ID NAME],
                                  %w[1 config-group-test]
                                ])
      expected_result = success_result(output)

      result = run_cmd(@cmd)
      assert_cmd(expected_result, result)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hammer_cli_foreman_puppet-0.0.7 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.6 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.5 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.4 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.3 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.2 test/functional/config_group_test.rb
hammer_cli_foreman_puppet-0.0.1 test/functional/config_group_test.rb