tests/ezmq/pair.rb in ezmq-0.4.3 vs tests/ezmq/pair.rb in ezmq-0.4.4
- old
+ new
@@ -18,10 +18,9 @@
end
should 'pass Hash messages to the encode method' do
@connected.encode = -> m { assert_equal({message: 'test'}, m) }
@connected.send message: 'test'
- @connected.encode = -> m { m }
end
should 'yield the contents of messages they receive, if given a block' do
@bound.send 'message'
assert_equal 'message', @connected.receive { |m| m }