mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update tests for #4149
This commit is contained in:
parent
0a2559b193
commit
da05cc832e
1 changed files with 2 additions and 2 deletions
|
@ -107,13 +107,13 @@ describe Sidekiq::Web do
|
|||
end
|
||||
|
||||
it 'can display queues' do
|
||||
assert Sidekiq::Client.push('queue' => :foo, 'class' => WebWorker, 'args' => [1, 3], 'enqueued_at' => Time.now.to_f - 65)
|
||||
assert Sidekiq::Client.push('queue' => :foo, 'class' => WebWorker, 'args' => [1, 3])
|
||||
|
||||
get '/queues'
|
||||
assert_equal 200, last_response.status
|
||||
assert_match(/foo/, last_response.body)
|
||||
refute_match(/HardWorker/, last_response.body)
|
||||
assert_match(/seconds ago/, last_response.body)
|
||||
assert_match(/0.0/, last_response.body)
|
||||
end
|
||||
|
||||
it 'handles queue view' do
|
||||
|
|
Loading…
Reference in a new issue