Sha256: b9a8a08ee47df676fa523aa272de6d98dd2f41dd56a52ed4ac6aae6cb3fc74a7
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
#!/usr/bin/env rspec require_relative "spec_helper" require "dbus" describe DBus::ProxyObject do around(:each) do |example| with_private_bus do with_service_by_activation(&example) end end let(:bus) { DBus::ASessionBus.new } context "when calling org.ruby.service" do let(:svc) { bus["org.ruby.service"] } context "when introspection mode is not specified" do describe "#bounce_variant" do it "works without an explicit #introspect call" do obj = svc["/org/ruby/MyInstance"] ifc = obj["org.ruby.SampleInterface"] expect(ifc.bounce_variant(42)).to be_eql 42 end it "works with one #introspect call" do obj = svc["/org/ruby/MyInstance"] obj.introspect ifc = obj["org.ruby.SampleInterface"] expect(ifc.bounce_variant(42)).to be_eql 42 end it "works with two #introspect calls" do obj = svc["/org/ruby/MyInstance"] obj.introspect obj.introspect ifc = obj["org.ruby.SampleInterface"] expect(ifc.bounce_variant(42)).to be_eql 42 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-dbus-0.14.1 | spec/proxy_object_spec.rb |
ruby-dbus-0.14.0 | spec/proxy_object_spec.rb |
ruby-dbus-0.13.0 | spec/proxy_object_spec.rb |