Sha256: 4151a3cb9f4c98271d93763e6a1ee9153a4e3e06620996097aa714b34a58bdaa

Contents?: true

Size: 623 Bytes

Versions: 11

Compression:

Stored size: 623 Bytes

Contents

#!/usr/bin/env ruby

require './TestSetup'
require 'test/unit'
require 'rubygems'
require 'rubyfb'

include Rubyfb

class ServiceManagerTest < Test::Unit::TestCase
   def setup
      puts "#{self.class.name} started." if TEST_LOGGING
   end
   
   def teardown
      puts "#{self.class.name} finished." if TEST_LOGGING
   end
   
   def test01
      sm = ServiceManager.new('localhost')
      assert(sm.connected? == false)

      assert(sm.connect(DB_USER_NAME, DB_PASSWORD) == sm)
      assert(sm.connected?)

      assert(sm.disconnect == sm)
      assert(sm.connected? == false)
   end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubyfb-0.6.7 test/ServiceManagerTest.rb
rubyfb-0.6.4 test/ServiceManagerTest.rb
rubyfb-0.6.3 test/ServiceManagerTest.rb
rubyfb-0.6.2 test/ServiceManagerTest.rb
rubyfb-0.6.1 test/ServiceManagerTest.rb
rubyfb-0.6 test/ServiceManagerTest.rb
rubyfb-0.5.9 test/ServiceManagerTest.rb
rubyfb-0.5.8 test/ServiceManagerTest.rb
rubyfb-0.5.7 test/ServiceManagerTest.rb
rubyfb-0.5.6 test/ServiceManagerTest.rb
rubyfb-0.5.5 test/ServiceManagerTest.rb