diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-22 19:58:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-22 19:58:13 +0300 |
commit | 043c499d369387a8128ca4d7de69dd4ae0f53a38 (patch) | |
tree | 4716189cd1d0a5762ade8da2642c36afa1e32280 /qa/spec/specs/helpers | |
parent | 96c51b59dd8405b4be71e01f571a8e3f943e8a49 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-ee
Diffstat (limited to 'qa/spec/specs/helpers')
-rw-r--r-- | qa/spec/specs/helpers/context_selector_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/spec/specs/helpers/context_selector_spec.rb b/qa/spec/specs/helpers/context_selector_spec.rb index 3550e78d9e3..369ee60d31d 100644 --- a/qa/spec/specs/helpers/context_selector_spec.rb +++ b/qa/spec/specs/helpers/context_selector_spec.rb @@ -29,6 +29,12 @@ RSpec.describe QA::Specs::Helpers::ContextSelector do expect(described_class.dot_com?).to be_truthy end + it 'returns true when url has .net' do + QA::Runtime::Scenario.define(:gitlab_address, "https://release.gitlab.net") + + expect(described_class.context_matches?).to be_truthy + end + it 'returns false when url does not have .com' do QA::Runtime::Scenario.define(:gitlab_address, "https://gitlab.test") |