Sha256: aead91cd9db211ccad39a7432390706d31b12d5191c50ae2cdb95e9c3a9b18db
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
require "helper" class PinglishCheckTest < MiniTest::Unit::TestCase def test_initialize check = Pinglish::Check.new(:db) assert_equal :db, check.name end def test_initialize_default_timeout check = Pinglish::Check.new(:db) assert_equal 1, check.timeout end def test_initialize_override_timeout check = Pinglish::Check.new(:db, :timeout => 2) assert_equal 2, check.timeout end def test_call check = Pinglish::Check.new(:db) { :result_of_block } assert_equal :result_of_block, check.call end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
goodguide-pinglish-1.0.0 | test/check_test.rb |
pinglish-0.2.1 | test/check_test.rb |
pinglish-0.2.0 | test/check_test.rb |
pinglish-0.1.0 | test/check_test.rb |
pinglish-0.0.1 | test/check_test.rb |