From 874413cf701870a0fc1051f7c0a5fc4b4f884657 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Tue, 21 Mar 2017 09:28:47 -0600 Subject: Fix specs --- spec/models/sent_notification_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/models/sent_notification_spec.rb') 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 -- cgit v1.2.1