Sha256: 91f9c5dd749824dea1ea78d831b7dfe5056581dc341ab2afdc512a45b6b813fd
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 Bytes
Contents
#!/usr/bin/env ruby # Test the bus class require File.expand_path("../test_helper", __FILE__) require "test/unit" require "dbus" class BusTest < Test::Unit::TestCase def setup @bus = DBus::ASessionBus.new @svc = @bus.service("org.ruby.service") @svc.object("/").introspect end def test_introspection_not_leaking # peek inside the object to see if a cleanup step worked or not some_hash = @bus.instance_eval { @method_call_replies || Hash.new } assert_equal 0, some_hash.size, "there are leftover method handlers" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-dbus-0.10.0 | test/bus_test.rb |
ruby-dbus-0.9.3 | test/bus_test.rb |
ruby-dbus-0.9.2 | test/bus_test.rb |