spec/amq/protocol/confirm_spec.rb in amq-protocol-1.9.2 vs spec/amq/protocol/confirm_spec.rb in amq-protocol-2.0.0
- old
+ new
@@ -10,20 +10,20 @@
describe '.decode' do
subject do
Select.decode("\x01")
end
- its(:nowait) { should be_true }
+ 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)
- method_frame.payload.should == "\x00U\x00\n\x01"
- method_frame.channel.should == 1
+ expect(method_frame.payload).to eq("\x00U\x00\n\x01")
+ expect(method_frame.channel).to eq(1)
end
end
end
describe SelectOk do
@@ -32,11 +32,11 @@
describe '.encode' do
it 'encodes the parameters into a MethodFrame' do
channel = 1
method_frame = SelectOk.encode(channel)
- method_frame.payload.should == "\000U\000\v"
- method_frame.channel.should == 1
+ expect(method_frame.payload).to eq("\000U\000\v")
+ expect(method_frame.channel).to eq(1)
end
end
end
end
end