push
travis-ci-com
1430 of 1430 new or added lines in 72 files covered. (100.0%)
4353 of 4936 relevant lines covered (88.19%)
371.65 hits per line
|
class SlackSmartBot |
2✔ |
|
def answer(from = Thread.current[:user].name, dest = Thread.current[:dest]) |
2✔ |
|
if @answer.key?(from) |
7,050✔ |
|
if Thread.current[:on_thread] |
4,090✔ |
|
dest = Thread.current[:thread_ts] |
× |
6 |
end
|
|
|
if @answer[from].key?(dest) |
4,090✔ |
|
return @answer[from][dest] |
506✔ |
9 |
else
|
|
|
return '' |
3,584✔ |
11 |
end
|
|
12 |
else
|
|
|
return '' |
2,960✔ |
14 |
end
|
|
15 |
end
|
|
16 |
|
|
17 |
end
|
|
18 |
|