spec/array_spec.rb in darkhelmet-darkext-0.11.0 vs spec/array_spec.rb in darkhelmet-darkext-0.11.1

- old
+ new

@@ -52,6 +52,12 @@ end it 'should return an Array from randomize' do @a.randomize.should be_a_kind_of(Array) end + + it 'should return nil from sum, product and random if size == 0' do + %w(sum product random).each do |method| + Array.new.send(method.intern).should be_nil + end + end end