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

- old
+ new

@@ -23,6 +23,11 @@ end should 'yield the contents of reply, if given a block' do assert_equal 'message', @client.request('message') { |m| m } end + + should 'pass Hash messages to the encode method' do + @client.encode = -> m { assert_equal({message: 'test'}, m) } + @client.request message: 'test' + end end