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