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.3.4 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.3.4 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.3.3 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.3.3 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.3.2 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.3.2 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.3.1 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.3.1 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.3.0 vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.3.0 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classiccms-0.2.4.pre vendor/bundle/gems/mongo-1.6.2/test/support_test.rb
classiccms-0.2.4.pre vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
mongo-1.6.2 test/support_test.rb
classicCMS-0.2.3 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classicCMS-0.2.2 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classicCMS-0.2.1 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classicCMS-0.2.0 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
classicCMS-0.1.2 vendor/bundle/gems/mongo-1.6.1/test/support_test.rb
mongo-1.6.1 test/support_test.rb
mongo-1.6.0 test/support_test.rb