Sha256: 3b67837b6c156242f861b2febdb28bbdfb7de62ce2e8145fd80a1be6af64a14c

Contents?: true

Size: 454 Bytes

Versions: 110

Compression:

Stored size: 454 Bytes

Contents

require './test/test_helper'

class SupportTest < Test::Unit::TestCase

  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

110 entries across 64 versions & 5 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.0 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.7.0 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.6.9 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.6.9 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.6.8 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.6.8 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.6.7 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.6.7 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.6.6 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.6.6 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb