push
travis-ci
214 of 502 relevant lines covered (42.63%)
50.38 hits per line
1 |
module ResqueWeb |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
2 |
class WorkersController < ResqueWeb::ApplicationController |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
3 |
before_action :display_subtabs
|
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
4 |
|
× |
5 |
def index |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
6 |
end
|
× |
7 |
|
× |
8 |
def show |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
9 |
if params[:id] && params[:id] != 'all' |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
10 |
@workers = view_context.worker_hosts[params[:id]].map { |id| Resque::Worker.find(id) } |
× |
11 |
else
|
× |
12 |
@workers = Resque.workers |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
13 |
end
|
× |
14 |
end
|
× |
15 |
|
× |
16 |
private |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
17 |
|
× |
18 |
def display_subtabs |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
19 |
set_subtabs view_context.worker_hosts.map(&:first)
|
30 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
20 |
end
|
× |
21 |
|
× |
22 |
end
|
× |
23 |
end
|
× |