summaryrefslogtreecommitdiff
path: root/spec/models/note_diff_file_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/note_diff_file_spec.rb')
-rw-r--r--spec/models/note_diff_file_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/note_diff_file_spec.rb b/spec/models/note_diff_file_spec.rb
new file mode 100644
index 00000000000..591c1a89748
--- /dev/null
+++ b/spec/models/note_diff_file_spec.rb
@@ -0,0 +1,11 @@
+require 'rails_helper'
+
+describe NoteDiffFile do
+ describe 'associations' do
+ it { is_expected.to belong_to(:diff_note) }
+ end
+
+ describe 'validations' do
+ it { is_expected.to validate_presence_of(:diff_note) }
+ end
+end