Commit 0e267d93 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'pl-fast-spec-helper-ci' into 'master'

Verify in CI that fast unit specs load without errors

See merge request gitlab-org/gitlab!78554
parents 443cfc57 7e9fb2e0
...@@ -335,7 +335,9 @@ rspec fast_spec_helper: ...@@ -335,7 +335,9 @@ rspec fast_spec_helper:
- .rspec-base-pg12 - .rspec-base-pg12
- .rails:rules:ee-and-foss-fast_spec_helper - .rails:rules:ee-and-foss-fast_spec_helper
script: script:
- bin/rspec spec/fast_spec_helper.rb - fast_spec_helper_specs=$(git grep -l -E '^require.*fast_spec_helper')
# Load fast_spec_helper as well just in case there are no specs available.
- bin/rspec --dry-run spec/fast_spec_helper.rb $fast_spec_helper_specs
rspec fast_spec_helper minimal: rspec fast_spec_helper minimal:
extends: extends:
......
# frozen_string_literal: true # frozen_string_literal: true
require 'fast_spec_helper' require 'fast_spec_helper'
require_relative "../../support/matchers/be_request_urgency" require_relative '../../support/matchers/be_request_urgency'
require_relative "../../../lib/gitlab/endpoint_attributes" require_relative '../../../lib/gitlab/endpoint_attributes/config'
require_relative '../../../lib/gitlab/endpoint_attributes'
RSpec.describe Gitlab::EndpointAttributes do RSpec.describe Gitlab::EndpointAttributes do
let(:base_controller) do let(:base_controller) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment