Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-04 22:46:14 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-02-05 18:16:57 +0300
commit24a11c957a34d2f22c0276fa8dcc3e2c23d1f164 (patch)
treede56172ee3b0627f5bebb74a8d08ea13c3dc3aa7 /spec/models/todo_spec.rb
parentd07addbf6e3841ae31a7e62ecbb29523f4d8c859 (diff)
Set todos#author_id to NOT NULL.
Diffstat (limited to 'spec/models/todo_spec.rb')
-rw-r--r--spec/models/todo_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/todo_spec.rb b/spec/models/todo_spec.rb
index 3e8f3848eca..bd498269798 100644
--- a/spec/models/todo_spec.rb
+++ b/spec/models/todo_spec.rb
@@ -20,6 +20,7 @@ describe Todo do
it { is_expected.to validate_presence_of(:action) }
it { is_expected.to validate_presence_of(:target_type) }
it { is_expected.to validate_presence_of(:user) }
+ it { is_expected.to validate_presence_of(:author) }
context 'for commits' do
subject { described_class.new(target_type: 'Commit') }