Cleaning up format of broadcast real-time messages, removing
redis-backed "mentions" timeline as redundant (given notifications)
This commit is contained in:
@ -19,13 +19,6 @@ RSpec.describe Api::V1::TimelinesController, type: :controller do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET #mentions' do
|
||||
it 'returns http success' do
|
||||
get :mentions
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET #public' do
|
||||
it 'returns http success' do
|
||||
get :public
|
||||
@ -55,13 +48,6 @@ RSpec.describe Api::V1::TimelinesController, type: :controller do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET #mentions' do
|
||||
it 'returns http unprocessable entity' do
|
||||
get :mentions
|
||||
expect(response).to have_http_status(:unprocessable_entity)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GET #public' do
|
||||
it 'returns http success' do
|
||||
get :public
|
||||
|
@ -26,10 +26,6 @@ RSpec.describe FanOutOnWriteService do
|
||||
expect(Feed.new(:home, follower).get(10).map(&:id)).to include status.id
|
||||
end
|
||||
|
||||
it 'delivers status to mentioned users' do
|
||||
expect(Feed.new(:mentions, alice).get(10).map(&:id)).to include status.id
|
||||
end
|
||||
|
||||
it 'delivers status to hashtag' do
|
||||
expect(Tag.find_by!(name: 'test').statuses.pluck(:id)).to include status.id
|
||||
end
|
||||
|
Reference in New Issue
Block a user