diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-13 16:05:30 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-13 16:05:30 +0200 |
commit | f6de5937e302493db2b9bcef7812ed36e1e049e6 (patch) | |
tree | 5cd95c593013e5d386f623e8dc3af82e48fc73a7 /spec/models | |
parent | c534d2e89ed00ff98c83a197674b5ac66a8aca93 (diff) | |
parent | 57ebd3996eb5d8ff85c5899c7a7f351272655562 (diff) | |
download | gitlab-ce-f6de5937e302493db2b9bcef7812ed36e1e049e6.tar.gz |
Merge remote-tracking branch 'origin/master' into artifacts-expire-date
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 |