diff options
| author | mo khan <mo.khan@gmail.com> | 2019-10-15 16:31:02 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-10-16 10:56:29 -0600 |
| commit | 8e46aa67ca5be04f5aae12a4eec63434ed0fefff (patch) | |
| tree | 330bc934cb28632a647bb822e72e46b003916ba2 /spec/spec_helper.rb | |
| parent | 7fe9eede20f1f7bd8b82b759df3e198acb563ba9 (diff) | |
This maps the hardcoded names to spdx ids
The GitLab UI has a hardcoded list of license names that need to be
mapped to the equivalent SPDX identifier.
* https://gitlab.com/gitlab-org/gitlab/blob/5d760ac8b75c07a3c748485fe08130fcc9af2acf/ee/app/assets/javascripts/vue_shared/license_management/constants.js#L8-32
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..2282613 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,16 @@ +require 'license/management' + +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end + config.shared_context_metadata_behavior = :apply_to_host_groups + config.filter_run_when_matching :focus + config.disable_monkey_patching! + config.warnings = true + config.order = :random + Kernel.srand config.seed +end |
