0
0
Fork 0

Fix OAuth authorization page and add a spec for it

This commit is contained in:
Eugen Rochko 2016-11-18 23:08:52 +01:00
parent 1fd2ac774f
commit 7b7bf834e9
6 changed files with 39 additions and 5 deletions

View file

@ -19,15 +19,15 @@ RSpec.describe FanOutOnWriteService do
end
it 'delivers status to home timeline' do
expect(Feed.new(:home, author).get(1).map(&:id)).to include status.id
expect(Feed.new(:home, author).get(10).map(&:id)).to include status.id
end
it 'delivers status to local followers' do
expect(Feed.new(:home, follower).get(1).map(&:id)).to include status.id
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(1).map(&:id)).to include status.id
expect(Feed.new(:mentions, alice).get(10).map(&:id)).to include status.id
end
it 'delivers status to hashtag' do