spec/amq/protocol/confirm_spec.rb in amq-protocol-2.2.0 vs spec/amq/protocol/confirm_spec.rb in amq-protocol-2.3.0.rc1

- old
+ new

@@ -1,36 +1,33 @@ # encoding: binary -require File.expand_path('../../../spec_helper', __FILE__) - - module AMQ module Protocol class Confirm - describe Select do + RSpec.describe Select do describe '.decode' do subject do Select.decode("\x01") end - + its(:nowait) { should be_truthy } end - + describe '.encode' do it 'encodes the parameters into a MethodFrame' do channel = 1 nowait = true method_frame = Select.encode(channel, nowait) expect(method_frame.payload).to eq("\x00U\x00\n\x01") expect(method_frame.channel).to eq(1) end end end - - describe SelectOk do + + RSpec.describe SelectOk do # describe '.decode' do # end - + describe '.encode' do it 'encodes the parameters into a MethodFrame' do channel = 1 method_frame = SelectOk.encode(channel) expect(method_frame.payload).to eq("\000U\000\v")