Explorar el Código

Improve performance of feed_manager_spec (#6517)

master
abcang hace 6 años
committed by Eugen Rochko
padre
commit
7124881273
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. +8
    -1
      spec/lib/feed_manager_spec.rb

+ 8
- 1
spec/lib/feed_manager_spec.rb Ver fichero

@@ -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



Cargando…
Cancelar
Guardar