diff options
Diffstat (limited to 'spec/services/alert_management/alerts/todo/create_service_spec.rb')
-rw-r--r-- | spec/services/alert_management/alerts/todo/create_service_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/alert_management/alerts/todo/create_service_spec.rb b/spec/services/alert_management/alerts/todo/create_service_spec.rb index e3d9de8b4df..fa4fd8ed0b2 100644 --- a/spec/services/alert_management/alerts/todo/create_service_spec.rb +++ b/spec/services/alert_management/alerts/todo/create_service_spec.rb @@ -58,6 +58,10 @@ RSpec.describe AlertManagement::Alerts::Todo::CreateService do create(:todo, :pending, **todo_params) end + before do + stub_feature_flags(multiple_todos: false) + end + it 'does not create a todo' do expect { result }.not_to change { Todo.count } end |