diff options
Diffstat (limited to 'spec/serializers/prometheus_alert_entity_spec.rb')
-rw-r--r-- | spec/serializers/prometheus_alert_entity_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/prometheus_alert_entity_spec.rb b/spec/serializers/prometheus_alert_entity_spec.rb index 91a1e3377c2..02da5a5bb88 100644 --- a/spec/serializers/prometheus_alert_entity_spec.rb +++ b/spec/serializers/prometheus_alert_entity_spec.rb @@ -3,8 +3,8 @@ require 'spec_helper' RSpec.describe PrometheusAlertEntity do - let(:user) { create(:user) } - let(:prometheus_alert) { create(:prometheus_alert) } + let(:user) { build_stubbed(:user) } + let(:prometheus_alert) { build_stubbed(:prometheus_alert) } let(:request) { double('prometheus_alert', current_user: user) } let(:entity) { described_class.new(prometheus_alert, request: request) } |