summaryrefslogtreecommitdiff
path: root/spec/serializers
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-10-18 16:17:24 +0200
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-18 16:25:31 +0200
commitd60cc75d4355be9adf2d6195e49c4e6a96ca336c (patch)
tree1ad19c4b9061a636a2d126627b1a958d2e398fd2 /spec/serializers
parent4a9efc606f5cdd9cf3aa34991543eb2f77555914 (diff)
downloadgitlab-ce-d60cc75d4355be9adf2d6195e49c4e6a96ca336c.tar.gz
Show modified and added public paths in MR
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/environment_status_entity_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/serializers/environment_status_entity_spec.rb b/spec/serializers/environment_status_entity_spec.rb
index 867ebecc77d..6894c65d639 100644
--- a/spec/serializers/environment_status_entity_spec.rb
+++ b/spec/serializers/environment_status_entity_spec.rb
@@ -25,11 +25,20 @@ describe EnvironmentStatusEntity do
it { is_expected.to include(:external_url_formatted) }
it { is_expected.to include(:deployed_at) }
it { is_expected.to include(:deployed_at_formatted) }
+ it { is_expected.to include(:changes) }
it { is_expected.not_to include(:stop_url) }
it { is_expected.not_to include(:metrics_url) }
it { is_expected.not_to include(:metrics_monitoring_url) }
+ context 'when :ci_environments_status_changes feature flag is disabled' do
+ before do
+ stub_feature_flags(ci_environments_status_changes: false)
+ end
+
+ it { is_expected.not_to include(:changes) }
+ end
+
context 'when the user is project maintainer' do
before do
project.add_maintainer(user)