summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2020-01-09 11:26:40 +0000
committerCan Eldem <celdem@gitlab.com>2020-01-09 11:26:40 +0000
commitf16af48f9b7cf99e8d1cdb1e44dad9aad3a090b6 (patch)
tree3944b2eade680f90739f2f3805dfec1a7bb1a360 /spec/spec_helper.rb
parentd51e4d90b3e7dbfc5b0a9ec90f37baf84dc105d0 (diff)
parentd89872f850332736eb174f2b0ab28692fda6bf46 (diff)
Merge branch '35629-upgrade-python' into 'master'v2.3.0
Upgrade python from 3.5 to 3.8 See merge request gitlab-org/security-products/license-management!101
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2282613..be7673c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,6 +1,18 @@
require 'license/management'
+require 'json'
+require 'support/integration_test_helper'
RSpec.configure do |config|
+ config.include IntegrationTestHelper, type: :integration
+ config.define_derived_metadata(file_path: /\/spec\/integration/) do |metadata|
+ metadata[:type] = :integration
+ end
+ config.before(:suite) do
+ system('./bin/docker-build') unless ENV['LM_HOME']
+ end
+ config.after(:example, type: :integration) do
+ runner.cleanup
+ end
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end