spec/saneitized/array_spec.rb in saneitized-1.1.1 vs spec/saneitized/array_spec.rb in saneitized-1.2.0

- old
+ new

@@ -2,26 +2,26 @@ describe Saneitized::Array do describe '#new' do it 'should convert array of numbers' do - Saneitized::Array.new(['1','2','3']).should == [1,2,3] + expect(Saneitized::Array.new(['1','2','3'])).to eql [1,2,3] end end describe '#[]=' do it 'should convert object at index' do a = Saneitized::Array.new a[0] = 'true' - a[0].should == true + expect(a[0]).to eql true end end describe '#<<' do it 'should converted added object' do a = Saneitized::Array.new a << '11' - a.should == [11] + expect(a).to eql [11] end end end