Sha256: 5932bfa6a22feb3a32cf6d313fdd5afea31e9ba728957435e3e350b4700b1148

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

#!/usr/bin/env ruby
require "test/unit"
require "dbus-openplacos"

def d(msg)
  puts msg if $DEBUG
end

class SessionBusAddressTest < Test::Unit::TestCase
  def setup
    # test getting the session bus address even if unset in ENV (Issue#4)
    ENV.delete "DBUS_SESSION_BUS_ADDRESS"
    @bus = DBus::ASessionBus.new
    @svc = @bus.service("org.freedesktop.DBus")
  end

  def test_connection
    assert @svc.exists?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-dbus-openplacos-0.7.2.2 test/session_bus_test_manual.rb
ruby-dbus-openplacos-0.7.2.1 test/session_bus_test_manual.rb
ruby-dbus-openplacos-0.7.2 test/session_bus_test_manual.rb
ruby-dbus-openplacos-0.7.0 test/session_bus_test_manual.rb
ruby-dbus-openplacos-0.6.2 test/session_bus_test_manual.rb
ruby-dbus-openplacos-0.6.1 test/session_bus_test_manual.rb