Sha256: ad1749d918e07b61b2385fd077b7ae45c27e5af3398ba64bd6dcbc2342e21ba0
Contents?: true
Size: 513 Bytes
Versions: 6
Compression:
Stored size: 513 Bytes
Contents
#!/usr/bin/env ruby # Test the bus class require "test/unit" require "dbus-openplacos" 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
6 entries across 6 versions & 1 rubygems