Sha256: ad78ae5c3fd95cecced73ec3c08adf672c4f5749e7abbe56ed7c77c92279c3b6
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
#!/usr/bin/env ruby # Test the methods of the bus driver require "test/unit" require "dbus" class BusDriverTest < Test::Unit::TestCase def setup @bus = DBus::ASessionBus.new @svc = @bus.service("org.ruby.service") @svc.object("/").introspect end def test_exists assert @svc.exists?, "could not find the service" nonsvc = @bus.service "org.ruby.nosuchservice" assert ! nonsvc.exists?, "found a service that should not exist" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-dbus-0.9.1 | test/bus_driver_test.rb |
ruby-dbus-0.9.0 | test/bus_driver_test.rb |