Skip to content
Snippets Groups Projects
Commit 71248812 authored by abcang's avatar abcang Committed by Eugen Rochko
Browse files

Improve performance of feed_manager_spec (#6517)

parent 66105929
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment