tests/ezmq/publish.rb in ezmq-0.4.3 vs tests/ezmq/publish.rb in ezmq-0.4.4

- old
+ new

@@ -14,6 +14,11 @@ end should 'return the length of messages they send (with a topic)' do assert_equal 8, @publisher.send('message') end + + should 'pass Hash messages to the encode method' do + @publisher.encode = -> m { assert_equal({message: 'test'}, m) } + @publisher.send message: 'test' + end end