mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-12 06:06:05 +10:00
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: VERSION app/assets/javascripts/project_new.js.coffee app/helpers/appearances_helper.rb app/helpers/application_helper.rb app/helpers/groups_helper.rb app/helpers/oauth_helper.rb app/models/user.rb app/views/admin/application_settings/_form.html.haml app/views/layouts/nav/_group.html.haml app/views/layouts/nav/_project_settings.html.haml app/views/profiles/accounts/show.html.haml doc/integration/README.md features/steps/project/merge_requests.rb features/support/env.rb spec/controllers/import/github_controller_spec.rb spec/helpers/oauth_helper_spec.rb spec/lib/gitlab/ldap/access_spec.rb spec/lib/gitlab/upgrader_spec.rb spec/models/project_team_spec.rb spec/routing/admin_routing_spec.rb spec/services/git_push_service_spec.rb spec/services/test_hook_service_spec.rb
34 lines
699 B
Ruby
34 lines
699 B
Ruby
if ENV['SIMPLECOV']
|
|
require 'simplecov'
|
|
end
|
|
|
|
if ENV['COVERALLS']
|
|
require 'coveralls'
|
|
Coveralls.wear_merged!
|
|
end
|
|
|
|
ENV['RAILS_ENV'] = 'test'
|
|
require './config/environment'
|
|
require 'rspec/expectations'
|
|
require 'sidekiq/testing/inline'
|
|
|
|
require_relative 'capybara'
|
|
require_relative 'db_cleaner'
|
|
|
|
%w(select2_helper test_env repo_helpers license).each do |f|
|
|
require Rails.root.join('spec', 'support', f)
|
|
end
|
|
|
|
Dir["#{Rails.root}/features/steps/shared/*.rb"].each { |file| require file }
|
|
|
|
WebMock.allow_net_connect!
|
|
|
|
Spinach.hooks.before_run do
|
|
include RSpec::Mocks::ExampleMethods
|
|
RSpec::Mocks.setup
|
|
TestEnv.init(mailer: false)
|
|
TestLicense.init
|
|
|
|
include FactoryGirl::Syntax::Methods
|
|
end
|