bdotdub-integrity-prowl 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/integrity-prowl.gemspec +1 -1
- data/lib/integrity/notifier/prowl.rb +1 -1
- data/test/integrity_prowl_test.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/integrity-prowl.gemspec
CHANGED
@@ -17,7 +17,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
|
|
17
17
|
|
18
18
|
context 'with valid API keys' do
|
19
19
|
should 'add one prowl message with one key' do
|
20
|
-
config = {
|
20
|
+
config = { 'api_keys' => 'an_api_key' }
|
21
21
|
flexmock(::Prowl).should_receive(:add).once
|
22
22
|
|
23
23
|
notifier = Integrity::Notifier::Prowl
|
@@ -27,7 +27,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
|
|
27
27
|
should 'add n prowl message with n keys' do
|
28
28
|
[5, 10, 25, 50].each do |to|
|
29
29
|
keys = (0...to).map{ |n| "api_key_#{n}" }
|
30
|
-
config = {
|
30
|
+
config = { 'api_keys' => keys.join(',') }
|
31
31
|
flexmock(::Prowl).should_receive(:add).times(keys.length)
|
32
32
|
|
33
33
|
notifier = Integrity::Notifier::Prowl
|
@@ -38,7 +38,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
|
|
38
38
|
|
39
39
|
should 'not notify prowl if no key is provided' do
|
40
40
|
[nil, ''].each do |key|
|
41
|
-
config = {
|
41
|
+
config = { 'api_keys' => key }
|
42
42
|
flexmock(::Prowl).should_receive(:add).times(0)
|
43
43
|
|
44
44
|
notifier = Integrity::Notifier::Prowl
|