diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-21 09:28:47 -0600 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 17:44:14 +0100 |
commit | 874413cf701870a0fc1051f7c0a5fc4b4f884657 (patch) | |
tree | 6cb2917f6a72fc918c8f28d884597f36fe0de34b /spec/models/sent_notification_spec.rb | |
parent | 79889a6aa3dc878d196d0f2f445ab6b10ef10c74 (diff) | |
download | gitlab-ce-874413cf701870a0fc1051f7c0a5fc4b4f884657.tar.gz |
Fix specs
Diffstat (limited to 'spec/models/sent_notification_spec.rb')
-rw-r--r-- | spec/models/sent_notification_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/sent_notification_spec.rb b/spec/models/sent_notification_spec.rb index 7a7ece24fc9..e482cafa831 100644 --- a/spec/models/sent_notification_spec.rb +++ b/spec/models/sent_notification_spec.rb @@ -4,7 +4,7 @@ describe SentNotification, model: true do describe 'validation' do describe 'note validity' do context "when the project doesn't match the noteable's project" do - subject { build(:sent_notification, project: create(:project)) } + subject { build(:sent_notification, noteable: create(:issue)) } it "is invalid" do expect(subject).not_to be_valid |