summaryrefslogtreecommitdiff
path: root/spec/models/chat_name_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/chat_name_spec.rb')
-rw-r--r--spec/models/chat_name_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/chat_name_spec.rb b/spec/models/chat_name_spec.rb
index 9ed00003ac1..67e0f98d147 100644
--- a/spec/models/chat_name_spec.rb
+++ b/spec/models/chat_name_spec.rb
@@ -43,4 +43,12 @@ RSpec.describe ChatName do
expect(subject.last_used_at).to eq(time)
end
end
+
+ it_behaves_like 'it has loose foreign keys' do
+ let(:factory_name) { :chat_name }
+
+ before do
+ Ci::PipelineChatData # ensure that the referenced model is loaded
+ end
+ end
end