diff --git a/backend/spec/models/tag_name_sanitisation_rule_spec.rb b/backend/spec/models/tag_name_sanitisation_rule_spec.rb index 654f85f..ea14461 100644 --- a/backend/spec/models/tag_name_sanitisation_rule_spec.rb +++ b/backend/spec/models/tag_name_sanitisation_rule_spec.rb @@ -1,6 +1,10 @@ require 'rails_helper' RSpec.describe TagNameSanitisationRule, type: :model do + before do + described_class.unscoped.delete_all + end + describe '.sanitise' do before do described_class.create!(priority: 10, source_pattern: '_', replacement: '')