push
travis-ci
1 of 1 new or added line in 1 file covered. (100.0%)
3724 of 5835 relevant lines covered (63.82%)
13.34 hits per line
1 |
require "guard/notifier"
|
5✔ |
2 |
|
|
3 |
module Guard |
5✔ |
4 |
module Commands |
5✔ |
5 |
class Notification |
5✔ |
6 |
def self.import |
5✔ |
7 |
Pry::Commands.create_command "notification" do |
5✔ |
8 |
group "Guard"
|
5✔ |
9 |
description "Toggles the notifications."
|
5✔ |
10 |
|
|
11 |
banner <<-BANNER |
4 all except 1.9.3 ✔ |
12 |
Usage: notification |
|
13 |
|
|
14 |
Toggles the notifications on and off.
|
|
15 |
BANNER |
2 only 1.9.3 and rbx ✔ |
16 |
|
|
17 |
def process |
5✔ |
18 |
::Guard::Notifier.toggle |
× |
19 |
end
|
|
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
|
|
26 |
Guard::Commands::Notification.import |
5✔ |