mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 07:51:37 +01:00
3cc47beb6e
as well as formatting of content
23 lines
604 B
Ruby
23 lines
604 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe FeedManager do
|
|
describe '#key' do
|
|
subject { FeedManager.instance.key(:home, 1) }
|
|
|
|
it 'returns a string' do
|
|
expect(subject).to be_a String
|
|
end
|
|
end
|
|
|
|
describe '#filter_status?' do
|
|
let(:followee) { Fabricate(:account, username: 'alice') }
|
|
let(:status) { Fabricate(:status, text: 'Hello world', account: followee) }
|
|
let(:follower) { Fabricate(:account, username: 'bob') }
|
|
|
|
subject { FeedManager.instance.filter_status?(status, follower) }
|
|
|
|
it 'returns a boolean value' do
|
|
expect(subject).to be false
|
|
end
|
|
end
|
|
end
|