push
travis-ci
2 of 2 new or added lines in 1 file covered. (100.0%)
4212 existing lines in 143 files now uncovered.2654 of 7765 relevant lines covered (34.18%)
4.51 hits per line
1 |
class LogsController < ApplicationController |
6✔ |
2 |
before_action :load_agent
|
6✔ |
3 |
|
|
4 |
def index |
6✔ |
UNCOV
5
|
@logs = @agent.logs.all |
× |
UNCOV
6
|
render :action => :index, :layout => false |
× |
7 |
end
|
|
8 |
|
|
9 |
def clear |
6✔ |
UNCOV
10
|
@agent.delete_logs!
|
× |
UNCOV
11
|
index |
× |
12 |
end
|
|
13 |
|
|
14 |
protected |
6✔ |
15 |
|
|
16 |
def load_agent |
6✔ |
UNCOV
17
|
@agent = current_user.agents.find(params[:agent_id]) |
× |
18 |
end
|
|
19 |
end
|