spec/amq/protocol/method_spec.rb in amq-protocol-1.0.0.pre1 vs spec/amq/protocol/method_spec.rb in amq-protocol-1.0.0.pre2

- old
+ new

@@ -23,14 +23,14 @@ body_frames.first.channel.should == 1 body_frames.should have(1).item end end - context 'when the body is to big to fit in a single frame' do + context 'when the body is too big to fit in a single frame' do it 'encodes a body into a list of BodyFrames that each fit within the frame size' do lipsum = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' frame_size = 100 - expected_payload_size = 93 + expected_payload_size = 92 body_frames = Method.encode_body(lipsum, 1, frame_size) body_frames.map(&:payload).should == lipsum.split('').each_slice(expected_payload_size).map(&:join) end end end