Sha256: 896b86dfc874dc97eba71ea29f1a524cddf5d15fd043f8580b953d9f1ca013c7
Contents?: true
Size: 810 Bytes
Versions: 49
Compression:
Stored size: 810 Bytes
Contents
# This calls the main test_helper in Foreman-core require 'test_helper' # Add plugin to FactoryBot's paths FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories') FactoryBot.reload # rubocop:disable Style/ClassAndModuleChildren class ActionController::TestCase # used in basic_rest_response_test and is undefined with our paths def root_url '/' end def json_response ActiveSupport::JSON.decode(@response.body) end end # rubocop:enable Style/ClassAndModuleChildren module ForemanPuppet module StubPuppetProxyFeature def stub_smart_proxy_v2_features_and_statuses super ForemanPuppet::ProxyStatus::Puppet.any_instance.stubs(:environment_stats).returns({}) end end end ActiveSupport::TestCase.prepend(ForemanPuppet::StubPuppetProxyFeature)
Version data entries
49 entries across 49 versions & 1 rubygems