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