spec/formatting/binary/array_spec.rb in ronin-support-0.5.1 vs spec/formatting/binary/array_spec.rb in ronin-support-0.5.2

- old
+ new

@@ -11,16 +11,16 @@ describe "#pack" do let(:packed) { "\x34\x12hello\0" } context "when only given a String" do it "should pack elements using Array#pack codes" do - subject.pack('vZ*').should == packed + expect(subject.pack('vZ*')).to eq(packed) end end context "otherwise" do it "should pack fields using Binary::Template" do - subject.pack(:uint16_le, :string).should == packed + expect(subject.pack(:uint16_le, :string)).to eq(packed) end end end end