Sha256: 5590d8da22d2218a96626a002edc9507644519e46470d750eb9862d5863c86ad
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
#!/usr/bin/env rspec # frozen_string_literal: true require_relative "spec_helper" require "dbus" # Pedantic full coverage test. # The happy paths are covered via calling classes describe DBus::Message do describe "#marshall" do it "raises when the object path is /org/freedesktop/DBus/Local" do m = DBus::Message.new(DBus::Message::SIGNAL) # the path is valid, it just must not be sent m.path = DBus::ObjectPath.new("/org/freedesktop/DBus/Local") m.interface = "org.example.spam" m.member = "Spam" expect { m.marshall }.to raise_error(RuntimeError, /Cannot send a message with the reserved path/) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-dbus-0.24.0 | spec/message_spec.rb |
ruby-dbus-0.23.1 | spec/message_spec.rb |
ruby-dbus-0.23.0.beta2 | spec/message_spec.rb |
ruby-dbus-0.23.0.beta1 | spec/message_spec.rb |