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