diff --git a/test/property/test_disco_info.rb b/test/property/test_disco_info.rb index 039db1cae732b7be08afe1e47f6bd7b2fce41d2e..7fbcd1785a044c16493032bdf13b7a88e2981825 100644 --- a/test/property/test_disco_info.rb +++ b/test/property/test_disco_info.rb @@ -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