Sha256: cea71cda495bcaa6ad067ca0d8d56e41c177443d917600e10763ae56b7235ded
Contents?: true
Size: 404 Bytes
Versions: 3
Compression:
Stored size: 404 Bytes
Contents
#!/usr/bin/env ruby # Test the methods of the bus driver require "test/unit" require "dbus" def d(msg) puts msg if $DEBUG end class BusDriverTest < Test::Unit::TestCase def setup @bus = DBus::SessionBus.instance @svc = @bus.service("org.ruby.service") end def test_exists assert @svc.exists? nonsvc = @bus.service "org.ruby.nosuchservice" assert ! nonsvc.exists? end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mvidner-ruby-dbus-0.2.10 | test/bus_driver_test.rb |
circus-deployment-0.2 | vendor/ruby-dbus/test/bus_driver_test.rb |
circus-deployment-0.0.1 | vendor/ruby-dbus/test/bus_driver_test.rb |