Sha256: f041acf5912f261122a6e39557eca6533fdd566e1f24285fddb64d6d60a55a72
Contents?: true
Size: 698 Bytes
Versions: 18
Compression:
Stored size: 698 Bytes
Contents
#!/usr/bin/env rspec # frozen_string_literal: true require_relative "spec_helper" require "dbus" describe "IntrospectXMLParserTest" do it "tests split interfaces" do xml = <<-XML <node> <interface name="org.example.Foo"> <method name="Dwim"/> </interface> <interface name="org.example.Bar"> <method name="Drink"/> </interface> <interface name="org.example.Foo"> <method name="Smurf"/> </interface> </node> XML interfaces, _subnodes = DBus::IntrospectXMLParser.new(xml).parse foo = interfaces.find { |i| i.name == "org.example.Foo" } expect(foo.methods.keys.size).to eq(2) end end
Version data entries
18 entries across 18 versions & 1 rubygems