1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Updating invalid jid in tests so it's more clear.

This commit is contained in:
Jonathan Hyman 2013-07-27 19:04:06 -04:00
parent 963e4e95e6
commit 820657a29d

View file

@ -130,7 +130,7 @@ class TestWeb < Minitest::Test
it 'can display a single retry' do
params = add_retry
get '/retries/2c4c17969825a384a92f023b'
get '/retries/0-shouldntexist'
assert_equal 302, last_response.status
get "/retries/#{job_params(*params)}"
assert_equal 200, last_response.status
@ -138,7 +138,7 @@ class TestWeb < Minitest::Test
end
it 'handles missing retry' do
get "/retries/2c4c17969825a384a92f023b"
get "/retries/0-shouldntexist"
assert_equal 302, last_response.status
end
@ -189,13 +189,18 @@ class TestWeb < Minitest::Test
it 'can display a single scheduled job' do
params = add_scheduled
get '/scheduled/2c4c17969825a384a92f023b'
get '/scheduled/0-shouldntexist'
assert_equal 302, last_response.status
get "/scheduled/#{job_params(*params)}"
assert_equal 200, last_response.status
assert_match /HardWorker/, last_response.body
end
it 'handles missing scheduled job' do
get "/scheduled/0-shouldntexist"
assert_equal 302, last_response.status
end
it 'can add to queue a single scheduled job' do
params = add_scheduled
post "/scheduled/#{job_params(*params)}", 'add_to_queue' => true