Sha256: 8beddb21853b25a347ff258f2bc660c4d74a47854059e6bb2f8ba7adb6bb89e9

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

#!/usr/bin/env rspec
require_relative "spec_helper"
require "dbus"

describe DBus::ASessionBus do
  context "when DBUS_SESSION_BUS_ADDRESS is unset in ENV (Issue#4)" do
    ENV.delete "DBUS_SESSION_BUS_ADDRESS"

    it "can connect" do
      bus = DBus::ASessionBus.new
      svc = bus.service("org.freedesktop.DBus")
      expect(svc.exists?).to be true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby-dbus-0.17.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.16.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.15.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.14.1 spec/session_bus_spec_manual.rb
ruby-dbus-0.14.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.13.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.12.0 spec/session_bus_spec_manual.rb
ruby-dbus-0.11.2 spec/session_bus_spec_manual.rb
ruby-dbus-0.11.1 spec/session_bus_spec_manual.rb