Sha256: 04f4f06d1e10e6e165aa339ae938cbd8f48730353fa21ca9d278958ecce950ba
Contents?: true
Size: 742 Bytes
Versions: 14
Compression:
Stored size: 742 Bytes
Contents
#!/usr/bin/env rspec # frozen_string_literal: true require_relative "spec_helper" require "dbus" describe DBus::Service do context "when a private bus is set up" do around(:each) do |example| with_private_bus do with_service_by_activation(&example) end end let(:bus) { DBus::ASessionBus.new } describe "#exists?" do it "is true for an existing service" do svc = bus.service("org.ruby.service") svc.object("/").introspect # must activate the service first :-/ expect(svc.exists?).to be true end it "is false for a nonexisting service" do svc = bus.service("org.ruby.nosuchservice") expect(svc.exists?).to be false end end end end
Version data entries
14 entries across 14 versions & 1 rubygems