about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-02-20 16:17:11 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-02-20 16:17:11 +0000
commit544543e40a723d9719f5571bd4c3455a6a69fccd (patch)
tree8d6e8cccbec3cf82b8ffefc93404a807d3eb99e2 /spec
parent1445ba17033cdfdd21d0999f65267754af6344af (diff)
parent712488127380dbdd5bde2783d98f0e9793f4d97b (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/feed_manager_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb
index f87ef383a..3c3b24c00 100644
--- a/spec/lib/feed_manager_spec.rb
+++ b/spec/lib/feed_manager_spec.rb
@@ -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