Sha256: 5bd654ed0a12ec0abeeb2913a2ab9f10ed205afb1142b413119a83b6c3e5590e

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

#!/usr/bin/env ruby

require 'TestSetup'
require 'test/unit'
require 'rubygems'
require 'fireruby'

include FireRuby

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

4 entries across 4 versions & 1 rubygems

Version Path
fireruby-0.4.1-mswin32 test/ServiceManagerTest.rb
fireruby-0.4.1-i586-linux test/ServiceManagerTest.rb
fireruby-0.4.0-mswin32 test/ServiceManagerTest.rb
fireruby-0.4.0-i586-linux test/ServiceManagerTest.rb