Sha256: 0ba31ba4f6e6b081106588c797a9ba7062dc2c5043b8c8800a1c12f5abb8c786

Contents?: true

Size: 750 Bytes

Versions: 5

Compression:

Stored size: 750 Bytes

Contents

require 'simplecov'
require 'pathname'

SimpleCov.use_merging true
SimpleCov.start do
  command_name 'MiniTest'
  add_filter 'test'
end
SimpleCov.root Pathname.new(File.dirname(__FILE__) + "../../../")


require 'minitest/autorun'
require 'minitest/spec'
require "minitest-spec-context"
require "mocha/minitest"

require 'hammer_cli'
require 'hammer_cli_foreman/testing/api_expectations'

FOREMAN_VERSION = ENV['TEST_API_VERSION'] || '2.1'
unless Dir.entries('test/data').include? FOREMAN_VERSION
  raise StandardError.new "Version is not correct"
end

include HammerCLIForeman::Testing::APIExpectations
HammerCLI.context[:api_connection].create('foreman') do
  api_connection({}, Gem::Version.new(FOREMAN_VERSION))
end

require 'hammer_cli_foreman'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hammer_cli_foreman-2.3.2 test/test_helper.rb
hammer_cli_foreman-2.4.0 test/test_helper.rb
hammer_cli_foreman-2.3.1 test/test_helper.rb
hammer_cli_foreman-2.3.0 test/test_helper.rb
hammer_cli_foreman-2.2.0 test/test_helper.rb