spec/arachni/ruby/enumerable_spec.rb in arachni-0.4.1.3 vs spec/arachni/ruby/enumerable_spec.rb in arachni-0.4.2

- old
+ new

@@ -14,19 +14,19 @@ @v << :k @v << 'my value' end describe '#realsize' do - it 'should return the sum of the real size of its elements' do + it 'returns the sum of the real size of its elements' do c = @v.dup v = @v.dup a = [ v.pop, [ v.pop, [ v.pop, { v.pop => v.pop } ] ] ] a.realsize.should == c.reduce(0) { |s, i| s += i.size } end context 'when the instance has variables' do - it 'should add their size to the sum' do + it 'adds their size to the sum' do ma = MyArr.new( @v ) ma.stuff = 'my stuff' ma.realsize.should > @v.realsize end