spec/amq/protocol/basic_spec.rb in amq-protocol-0.9.0 vs spec/amq/protocol/basic_spec.rb in amq-protocol-0.9.1
- old
+ new
@@ -136,9 +136,17 @@
method_frame = Cancel.encode(channel, consumer_tag, nowait)
method_frame.payload.should == "\x00<\x00\x1E\x03foo\x01"
method_frame.channel.should == 1
end
end
+
+ describe '.decode' do
+ subject do
+ CancelOk.decode("\x03foo\x01")
+ end
+
+ its(:consumer_tag) { should == 'foo' }
+ end
end
describe CancelOk do
describe '.decode' do
subject do
\ No newline at end of file