#345: fixed build_lists_publish_task_manager_spec.rb
This commit is contained in:
parent
f33296c266
commit
d7a449904b
|
@ -38,6 +38,7 @@ Rosa::Application.configure do
|
|||
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
|
||||
config.assets.allow_debugging = true
|
||||
|
||||
config.cache_store = :memory_store, { size: 64.megabytes }
|
||||
config.eager_load = false
|
||||
config.log_redis = true
|
||||
end
|
||||
|
|
|
@ -58,7 +58,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensures that new task for publishing has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -93,7 +93,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensures that new task for publishing has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -117,7 +117,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensures that new tasks for publishing has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(4).items
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(4).items
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -153,7 +153,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensures that new task for publishing has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -196,7 +196,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensures that new task for publishing has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
|
||||
it "ensures that 'locked build lists' has only one item" do
|
||||
|
@ -224,7 +224,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it "ensure that new task for resign has been created" do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -242,7 +242,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it 'ensures that new task has been created' do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -259,7 +259,7 @@ describe AbfWorker::BuildListsPublishTaskManager do
|
|||
end
|
||||
|
||||
it 'ensures that new task has been created' do
|
||||
@redis_instance.lrange('queue:publish_worker_default', 0, -1).should have(1).item
|
||||
@redis_instance.lrange('resque:queue:publish_worker_default', 0, -1).should have(1).item
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ def stub_redis
|
|||
allow(Redis).to receive(:new).and_return(@redis_instance)
|
||||
allow(Redis).to receive(:current).and_return(@redis_instance)
|
||||
allow(Redis::Store).to receive(:new).and_return(@redis_instance)
|
||||
Resque.redis = @redis_instance
|
||||
end
|
||||
|
||||
def fill_project project
|
||||
|
|
Loading…
Reference in New Issue