diff options
Diffstat (limited to 'spec/serializers/environment_entity_spec.rb')
-rw-r--r-- | spec/serializers/environment_entity_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/serializers/environment_entity_spec.rb b/spec/serializers/environment_entity_spec.rb index c969638614e..c90f771335e 100644 --- a/spec/serializers/environment_entity_spec.rb +++ b/spec/serializers/environment_entity_spec.rb @@ -82,26 +82,6 @@ RSpec.describe EnvironmentEntity do end end - context 'with alert' do - let!(:environment) { create(:environment, project: project) } - let!(:prometheus_alert) { create(:prometheus_alert, project: project, environment: environment) } - let!(:alert) { create(:alert_management_alert, :triggered, :prometheus, project: project, environment: environment, prometheus_alert: prometheus_alert) } - - it 'exposes active alert flag' do - project.add_maintainer(user) - - expect(subject[:has_opened_alert]).to eq(true) - end - - context 'when user does not have permission to read alert' do - it 'does not expose active alert flag' do - project.add_reporter(user) - - expect(subject[:has_opened_alert]).to be_nil - end - end - end - context 'pod_logs' do context 'with reporter access' do before do |