Sha256: 2be2113d3a5374f5341aec10e14ea5a56beb761b4b67c0b779f85971b3425f2f

Contents?: true

Size: 657 Bytes

Versions: 7

Compression:

Stored size: 657 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

ENV["RAILS_ENV"] ||= 'test'

require 'test/unit'
require 'foreman_discovery'
require 'rails/test_help'

Rails.backtrace_cleaner.remove_silencers!

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
  #
  # Note: You'll currently still have to declare fixtures explicitly in integration tests
  # -- they do not yet inherit this setting

  foreman_dir =  File.expand_path("../../.foreman_app", File.join(Dir.pwd, __FILE__))
  fixture_path=File.join(foreman_dir, "test/fixtures")
  fixtures :all

  set_fixture_class({ :hosts => Host::Base })
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_discovery-8.0.1 test/test_helper.rb
foreman_discovery-8.0.0 test/test_helper.rb
foreman_discovery-7.0.1 test/test_helper.rb
foreman_discovery-7.0.0 test/test_helper.rb
foreman_discovery-6.0.0 test/test_helper.rb
foreman_discovery-5.0.2 test/test_helper.rb
foreman_discovery-5.0.1 test/test_helper.rb