Sha256: 1cf09d0ed3394d5b1ace00e995983849c099bbc91042083eda3c74410379773b

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'] || '3.4'
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-3.7.0 test/test_helper.rb
hammer_cli_foreman-3.5.1 test/test_helper.rb
hammer_cli_foreman-3.6.0 test/test_helper.rb
hammer_cli_foreman-3.5.0 test/test_helper.rb
hammer_cli_foreman-3.4.0 test/test_helper.rb