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

Version Path
mongo-lyon-1.2.4 test/support_test.rb
mongo-1.2.4 test/support_test.rb
mongo-1.2.3 test/support_test.rb
mongo-1.2.2 test/support_test.rb
mongo-1.2.1 test/support_test.rb
mongo-1.2.0 test/support_test.rb
mongo-1.2.rc2 test/support_test.rb
mongo-1.2.rc1 test/support_test.rb
mongo-1.2.rc0 test/support_test.rb
mongo-1.1.5 test/support_test.rb
mongo-1.1.4 test/support_test.rb
mongo-1.1.3 test/support_test.rb
mongo-1.1.2 test/support_test.rb
mongo-1.1.1 test/support_test.rb
mongo-1.1 test/support_test.rb
mongo-1.0.9 test/support_test.rb