debian-mirror-gitlab/gitlab-peek/test/test_helper.rb

23 lines
531 B
Ruby
Raw Normal View History

2019-12-06 12:11:25 +05:30
ENV['RAILS_ENV'] = 'test'
require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rails/test_help'
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
# Load fixtures from the engine
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
end
require 'minitest/autorun'
begin
require 'turn'
rescue LoadError
# Not installed.
end