make notifications controller spec stable

This commit is contained in:
Jonne Haß 2019-04-26 12:26:26 +02:00
parent 3080d1c559
commit 3f77507b15

View file

@ -25,7 +25,7 @@ describe Api::V1::NotificationsController do
:status_message,
text: "This is a status message mentioning @{#{auth.user.diaspora_handle}}"
)
@notification = FactoryGirl.create(:notification, recipient: auth.user, target: @post)
@notification = FactoryGirl.create(:notification, recipient: auth.user, target: @post, created_at: 1.hour.ago)
@mentioned = FactoryGirl.create(:notification_mentioned_in_comment, recipient: auth.user, target: @post)
end