Sha256: 62d865a42563c599834d6dcfe8eb6f8bac791f525313016ccbaf8505d2d7cd7f
Contents?: true
Size: 470 Bytes
Versions: 16
Compression:
Stored size: 470 Bytes
Contents
require './test/test_helper' class SupportTest < Test::Unit::TestCase include Mongo def test_command_response_succeeds assert Support.ok?('ok' => 1) assert Support.ok?('ok' => 1.0) assert Support.ok?('ok' => true) end def test_command_response_fails assert !Support.ok?('ok' => 0) assert !Support.ok?('ok' => 0.0) assert !Support.ok?('ok' => 0.0) assert !Support.ok?('ok' => 'str') assert !Support.ok?('ok' => false) end end
Version data entries
16 entries across 16 versions & 2 rubygems