Commit 1424dc02850819d6a3877d478c02003afc523f03
1 parent
26d1c265
Exists in
master
and in
22 other branches
[postgres-tests] Fixing feed_handler tests
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
test/unit/feed_handler_test.rb
@@ -124,6 +124,8 @@ class FeedHandlerTest < ActiveSupport::TestCase | @@ -124,6 +124,8 @@ class FeedHandlerTest < ActiveSupport::TestCase | ||
124 | # after disabled period, tries to process the container again | 124 | # after disabled period, tries to process the container again |
125 | last_error = Time.now | 125 | last_error = Time.now |
126 | Time.stubs(:now).returns(last_error + FeedHandler.disabled_period + 1.second) | 126 | Time.stubs(:now).returns(last_error + FeedHandler.disabled_period + 1.second) |
127 | + handler.expects(:actually_process_container).with(container) | ||
128 | + container.expects(:finish_fetch) | ||
127 | handler.process(container) | 129 | handler.process(container) |
128 | 130 | ||
129 | assert container.enabled, 'must reenable container after <disabled_period> (%s)' % container_class | 131 | assert container.enabled, 'must reenable container after <disabled_period> (%s)' % container_class |