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 |
module WorkingHelper |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
3 |
def workers |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
4 |
@workers ||= Resque.workers |
180 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
5 |
end
|
× |
6 |
|
× |
7 |
def jobs |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
8 |
@jobs ||= workers.map(&:job) |
60 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
9 |
end
|
× |
10 |
|
× |
11 |
def worker_jobs |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
12 |
@worker_jobs ||= workers.zip(jobs).reject { |w, j| w.idle? || j['queue'].nil? } |
180 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
13 |
end
|
× |
14 |
|
× |
15 |
def sorted_worker_jobs |
15 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
16 |
@sorted_worker_jobs ||= worker_jobs.sort_by { |w, j| j['run_at'] || '' } |
60 all except 2.4.1, gemfiles/rails42.gemfile ✔ |
17 |
end
|
× |
18 |
end
|
× |
19 |
end
|
× |