diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-22 15:09:08 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-22 15:09:08 +0000 |
commit | 7e81076708c00325c922928aa593070b1c9b402c (patch) | |
tree | 380802616a02d97cf0c6404a4bbb2b67f23335ab /spec/lib/atlassian | |
parent | ab08967ca2412c9be06eacbfd2e66157fac5433e (diff) | |
download | gitlab-ce-7e81076708c00325c922928aa593070b1c9b402c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/atlassian')
-rw-r--r-- | spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb b/spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb index 964801338cf..2d12cd1ed0a 100644 --- a/spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb +++ b/spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb @@ -9,7 +9,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do subject { described_class.represent(feature_flag) } context 'when the feature flag does not belong to any Jira issue' do - let_it_be(:feature_flag) { create(:operations_feature_flag) } + let_it_be(:feature_flag) { create(:operations_feature_flag, project: project) } describe '#issue_keys' do it 'is empty' do @@ -30,7 +30,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do context 'when the feature flag does belong to a Jira issue' do let(:feature_flag) do - create(:operations_feature_flag, description: 'THING-123') + create(:operations_feature_flag, project: project, description: 'THING-123') end describe '#issue_keys' do @@ -66,6 +66,7 @@ RSpec.describe Atlassian::JiraConnect::Serializers::FeatureFlagEntity do end it 'has the correct summary' do + expect(entity.dig('summary', 'url')).to eq "http://localhost/#{project.full_path}/-/feature_flags/#{feature_flag.iid}/edit" expect(entity.dig('summary', 'status')).to eq( 'enabled' => true, 'defaultValue' => '', |