Project

General

Profile

Download (594 Bytes) Statistics
| Branch: | Tag: | Revision:
require File.expand_path('../test_helper', File.dirname(__FILE__))

class TestHelper
class << self
attr_accessor :use_present_service_2, :present_service_is_running, :migrations_fail_at

def reset
self.use_present_service_2 = false
self.present_service_is_running = false
self.migrations_fail_at = nil
end
end
end

module ResetTestState
def self.included(klass)
klass.before do
TestHelper.reset
end
end
end

TEST_DIR = File.dirname(__FILE__)
CONFIG_FILE = File.join(TEST_DIR, 'config/foreman_maintain.yml.test').freeze

ForemanMaintain.setup
(7-7/9)