0
0
Fork 0

Add scheduled statuses (#9706)

Fix #340
This commit is contained in:
Eugen Rochko 2019-01-05 12:43:28 +01:00 committed by GitHub
parent b17b2f25ac
commit a49d43d112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 437 additions and 103 deletions

View file

@ -50,9 +50,9 @@ RSpec.describe Api::V1::NotificationsController, type: :controller do
let(:scopes) { 'read:notifications' }
before do
first_status = PostStatusService.new.call(user.account, 'Test')
first_status = PostStatusService.new.call(user.account, text: 'Test')
@reblog_of_first_status = ReblogService.new.call(other.account, first_status)
mentioning_status = PostStatusService.new.call(other.account, 'Hello @alice')
mentioning_status = PostStatusService.new.call(other.account, text: 'Hello @alice')
@mention_from_status = mentioning_status.mentions.first
@favourite = FavouriteService.new.call(other.account, first_status)
@follow = FollowService.new.call(other.account, 'alice')