Change summary
test/property/test_disco_info.rb | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Detailed changes
@@ -68,4 +68,23 @@ class DiscoInfoPropertyTest < Minitest::Test
}
end
em :test_disco_info_get_for_gateway_returns_gateway_identity
+
+ def test_disco_info_non_get_produces_no_output
+ property_of {
+ DiscoInfoIQ
+ .new(REDIS)
+ .stanza { |target_node, jid|
+ iq = Blather::Stanza::DiscoInfo.new(choose(:set, :result))
+ iq.to = target_node ? "#{target_node}@component" : "component"
+ iq.from = jid
+ iq
+ }
+ .generate
+ }.check { |_metadata, example|
+ process_stanza(example['stanza'])
+
+ assert_empty written
+ }
+ end
+ em :test_disco_info_non_get_produces_no_output
end