Sha256: da485f1d5f028a351995ab8dae4d1688fa0d63f66396b42dd16e45d5d8158d66

Contents?: true

Size: 604 Bytes

Versions: 21

Compression:

Stored size: 604 Bytes

Contents

require 'test_helper'

class SemaphoreCheckTest < ActiveSupport::TestCase
  
  test "#run sets success conditions on successful run" do
    check = Easymon::SemaphoreCheck.new("config/redis.yml")
    results = check.check

    assert_equal(true, results[0])
    assert_equal("config/redis.yml is in place!", results[1])
  end
  
  test "#run sets failure conditions on a failed run" do
    check = Easymon::SemaphoreCheck.new("config/file-does-not-exist")
    results = check.check

    assert_equal(false, results[0])
    assert_equal("config/file-does-not-exist does not exist!", results[1])
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
easymon-1.6.3 test/unit/checks/semaphore_check_test.rb
easymon-1.6.2 test/unit/checks/semaphore_check_test.rb
easymon-1.6.1 test/unit/checks/semaphore_check_test.rb
easymon-1.5 test/unit/checks/semaphore_check_test.rb
easymon-1.6.0 test/unit/checks/semaphore_check_test.rb
easymon-1.4.2 test/unit/checks/semaphore_check_test.rb
easymon-1.4.1 test/unit/checks/semaphore_check_test.rb
easymon-1.4 test/unit/checks/semaphore_check_test.rb
easymon-1.3 test/unit/checks/semaphore_check_test.rb
easymon-1.2.6 test/unit/checks/semaphore_check_test.rb
easymon-1.2.5 test/unit/checks/semaphore_check_test.rb
easymon-1.2.4 test/unit/checks/semaphore_check_test.rb
easymon-1.2.3 test/unit/checks/semaphore_check_test.rb
easymon-1.2.2 test/unit/checks/semaphore_check_test.rb
easymon-1.2.1 test/unit/checks/semaphore_check_test.rb
easymon-1.2 test/unit/checks/semaphore_check_test.rb
easymon-1.1 test/unit/checks/semaphore_check_test.rb
easymon-1.0.9 test/unit/checks/semaphore_check_test.rb
easymon-1.0.8 test/unit/checks/semaphore_check_test.rb
easymon-1.0.7 test/unit/checks/semaphore_check_test.rb