diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-06-13 11:52:39 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-06-13 11:52:39 +0000 |
commit | c03f12590440c4071151d0097299c3f3dd50c5c7 (patch) | |
tree | c2a562e1dd53d19f3a9b685496213b646e1461b5 /spec/models | |
parent | 65df6bcb898e067e380658431136b5ef9aaba3b0 (diff) | |
parent | 39ead205de72461e86db07525922f2fab5fff2a9 (diff) | |
download | gitlab-ce-c03f12590440c4071151d0097299c3f3dd50c5c7.tar.gz |
Merge branch 'issue_3359_2' into 'master'
Remove notification level from user model
part of #3359
See merge request !4494
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/notification_setting_spec.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/notification_setting_spec.rb b/spec/models/notification_setting_spec.rb index 295081e9da1..4e24e89b008 100644 --- a/spec/models/notification_setting_spec.rb +++ b/spec/models/notification_setting_spec.rb @@ -10,7 +10,6 @@ RSpec.describe NotificationSetting, type: :model do subject { NotificationSetting.new(source_id: 1, source_type: 'Project') } it { is_expected.to validate_presence_of(:user) } - it { is_expected.to validate_presence_of(:source) } it { is_expected.to validate_presence_of(:level) } it { is_expected.to validate_uniqueness_of(:user_id).scoped_to([:source_id, :source_type]).with_message(/already exists in source/) } end |