mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 06:06:22 +01:00
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
This commit is contained in:
commit
544543e40a
@ -1,7 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe FeedManager do
|
||||
it 'tracks at least as many statuses as reblogs' do
|
||||
before do |example|
|
||||
unless example.metadata[:skip_stub]
|
||||
stub_const 'FeedManager::MAX_ITEMS', 10
|
||||
stub_const 'FeedManager::REBLOG_FALLOFF', 4
|
||||
end
|
||||
end
|
||||
|
||||
it 'tracks at least as many statuses as reblogs', skip_stub: true do
|
||||
expect(FeedManager::REBLOG_FALLOFF).to be <= FeedManager::MAX_ITEMS
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user