Sha256: 108c99da62d1bcf77efb5b80a3ed5b4ff026f68de7d40455ab573bf6f7153ddf

Contents?: true

Size: 428 Bytes

Versions: 15

Compression:

Stored size: 428 Bytes

Contents

#!/usr/bin/env rspec
# frozen_string_literal: true

require_relative "spec_helper"
require "dbus"

describe "Quit the service" do
  it "Tells the service to quit and waits, to collate coverage data" do
    session_bus = DBus::ASessionBus.new
    @svc = session_bus.service("org.ruby.service")
    @obj = @svc.object("/org/ruby/MyInstance")
    @obj.default_iface = "org.ruby.SampleInterface"
    @obj.quit
    sleep 3
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruby-dbus-0.23.1 spec/zzz_quit_spec.rb
ruby-dbus-0.23.0.beta2 spec/zzz_quit_spec.rb
ruby-dbus-0.23.0.beta1 spec/zzz_quit_spec.rb
ruby-dbus-0.22.1 spec/zzz_quit_spec.rb
ruby-dbus-0.22.0 spec/zzz_quit_spec.rb
ruby-dbus-0.21.0 spec/zzz_quit_spec.rb
ruby-dbus-0.20.0 spec/zzz_quit_spec.rb
ruby-dbus-0.19.0 spec/zzz_quit_spec.rb
ruby-dbus-0.18.1 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta8 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta7 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta6 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta5 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta4 spec/zzz_quit_spec.rb
ruby-dbus-0.18.0.beta3 spec/zzz_quit_spec.rb