Sha256: c0fd50cd21f8faa366f3a6876f6102ffbde31a8782a74b9e8c23971e88b09140

Contents?: true

Size: 197 Bytes

Versions: 38

Compression:

Stored size: 197 Bytes

Contents

require 'spec_helper'
require 'volt/extra_core/array'

describe Array do
  describe '#sum' do
    it 'calculates sum of array of integers' do
      expect([1, 2, 3].sum).to eq(6)
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
volt-0.9.5.pre4 spec/extra_core/array_spec.rb
volt-0.9.5.pre3 spec/extra_core/array_spec.rb
volt-0.9.5.pre2 spec/extra_core/array_spec.rb
volt-0.9.5.pre1 spec/extra_core/array_spec.rb
volt-0.9.4 spec/extra_core/array_spec.rb
volt-0.9.4.pre5 spec/extra_core/array_spec.rb
volt-0.9.4.pre3 spec/extra_core/array_spec.rb
volt-0.9.4.pre2 spec/extra_core/array_spec.rb
volt-0.9.4.pre1 spec/extra_core/array_spec.rb
volt-0.9.3 spec/extra_core/array_spec.rb
volt-0.9.3.pre6 spec/extra_core/array_spec.rb
volt-0.9.3.pre5 spec/extra_core/array_spec.rb
volt-0.9.3.pre4 spec/extra_core/array_spec.rb
volt-0.9.3.pre3 spec/extra_core/array_spec.rb
volt-0.9.3.pre2 spec/extra_core/array_spec.rb
volt-0.9.3.pre1 spec/extra_core/array_spec.rb
volt-0.9.2 spec/extra_core/array_spec.rb
volt-0.9.1 spec/extra_core/array_spec.rb
volt-0.9.1.pre5 spec/extra_core/array_spec.rb
volt-0.9.1.pre4 spec/extra_core/array_spec.rb