resque_manager 3.3.10 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/resque_manager/resque_controller.rb +4 -4
- data/app/views/resque_manager/resque/_queues.html.erb +1 -1
- data/app/views/resque_manager/resque/_workers.html.erb +4 -4
- data/app/views/resque_manager/resque/schedule.html.erb +4 -4
- data/app/views/resque_manager/resque/statuses.html.erb +2 -2
- data/config/routes.rb +29 -32
- data/lib/resque_manager/version.rb +1 -1
- data/test/dummy/config/environments/test.rb +1 -3
- data/test/dummy/config/initializers/secret_token.rb +1 -1
- data/test/dummy/log/test.log +2781 -0
- data/test/functional/resque_manager/resque_controller_test.rb +4 -3
- metadata +2 -2
@@ -115,6 +115,7 @@ module ResqueManager
|
|
115
115
|
|
116
116
|
context '#start_worker' do
|
117
117
|
should 'always redirect to workers path' do
|
118
|
+
Resque::Worker.expects(:start)
|
118
119
|
post :start_worker, use_route: :resque_manager
|
119
120
|
assert_redirected_to '/resque/workers'
|
120
121
|
end
|
@@ -234,13 +235,13 @@ module ResqueManager
|
|
234
235
|
context '#status' do
|
235
236
|
should 'render a status in json' do
|
236
237
|
hash = Resque::Plugins::Status::Hash.set('UUID', 'message')
|
237
|
-
get :status, {
|
238
|
+
get :status, {uuid: 'UUID', format: :js, use_route: :resque_manager}
|
238
239
|
assert_equal hash, JSON.parse(@response.body), JSON.parse(@response.body).inspect
|
239
240
|
end
|
240
241
|
|
241
242
|
should 'render a status in html' do
|
242
243
|
hash = Resque::Plugins::Status::Hash.set('UUID', 'message')
|
243
|
-
post :status, {
|
244
|
+
post :status, {uuid: 'UUID', use_route: :resque_manager}
|
244
245
|
assert_select 'h1', /Statuses:/
|
245
246
|
end
|
246
247
|
end
|
@@ -248,7 +249,7 @@ module ResqueManager
|
|
248
249
|
context '#kill' do
|
249
250
|
should 'redirect to statuses and kill a status' do
|
250
251
|
Resque::Plugins::Status::Hash.set('UUID', 'message')
|
251
|
-
post :kill, {
|
252
|
+
post :kill, {uuid: 'UUID', use_route: :resque_manager}
|
252
253
|
assert_redirected_to '/resque/statuses'
|
253
254
|
hash = Resque::Plugins::Status::Hash.get('UUID')
|
254
255
|
assert_equal 'killed', hash['status']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Tyll
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|