diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-06-06 18:50:54 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-06-10 16:58:13 +0300 |
commit | 8f6d43e0fea3ce62ec2e8e211755e557f19c51fd (patch) | |
tree | 72930d029dd905d7630ec07dd65acb0ac4b0739c /spec/models/notification_setting_spec.rb | |
parent | f29fd65cdde1d769fc89f0cc57ea989765b5068f (diff) |
Remove notification level from user model
Diffstat (limited to 'spec/models/notification_setting_spec.rb')
-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 |