From 5355be5840da928e0b877b4dffa54eb58f1e2e4b Mon Sep 17 00:00:00 2001 From: aisayo Date: Mon, 16 Oct 2023 18:06:07 -0400 Subject: [PATCH] Update test expectations due to validation --- spec/models/feature_flag_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/feature_flag_spec.rb b/spec/models/feature_flag_spec.rb index 34f8791b44..35e797420f 100644 --- a/spec/models/feature_flag_spec.rb +++ b/spec/models/feature_flag_spec.rb @@ -8,7 +8,7 @@ expect { create(:feature_flag, name: duplicate_feature_flag_name) create(:feature_flag, name: duplicate_feature_flag_name) - }.to raise_error(ActiveRecord::RecordNotUnique) + }.to raise_error(ActiveRecord::RecordInvalid) end end end