easymon 1.2 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of easymon might be problematic. Click here for more details.

@@ -21,6 +21,8 @@ class ChecklistTest < ActiveSupport::TestCase
21
21
  end
22
22
 
23
23
  test "#to_s returns a valid representation of the checklist" do
24
+ Easymon::Testing.stub_service_success(:redis)
25
+ Easymon::Testing.stub_service_success(:memcached)
24
26
  checklist = Easymon::Repository.all
25
27
 
26
28
  checklist.check
@@ -42,6 +44,8 @@ class ChecklistTest < ActiveSupport::TestCase
42
44
  end
43
45
 
44
46
  test "#response_status returns :ok when all checks pass" do
47
+ Easymon::Testing.stub_service_success(:redis)
48
+ Easymon::Testing.stub_service_success(:memcached)
45
49
  checklist = Easymon::Repository.all
46
50
 
47
51
  checklist.check
@@ -3,6 +3,8 @@ require 'test_helper'
3
3
  class MemcachedCheckTest < ActiveSupport::TestCase
4
4
 
5
5
  test "#run sets success conditions on successful run" do
6
+ Rails.cache.stubs(:write).returns(true)
7
+ Rails.cache.stubs(:read).returns(1)
6
8
  check = Easymon::MemcachedCheck.new(Rails.cache)
7
9
  results = check.check
8
10
 
@@ -3,6 +3,7 @@ require 'test_helper'
3
3
  class RedisCheckTest < ActiveSupport::TestCase
4
4
 
5
5
  test "#run sets success conditions on successful run" do
6
+ Redis.any_instance.stubs(:ping).returns("PONG")
6
7
  check = create_check
7
8
  results = check.check
8
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easymon
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Anderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client