Sha256: 29d44322e9c0a71445c216a6835fdc2f9af886edcfd64120e75a0606a4d3a2b6

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Aggregate::Sum::Methods, '#sum' do
  subject { object.sum }

  let(:described_class) { Class.new { include Aggregate::Sum::Methods } }
  let(:object)          { described_class.new.freeze                    }

  it { should be_instance_of(Aggregate::Sum) }

  its(:operand) { should be(object) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/aggregate/sum/methods/sum_spec.rb
axiom-0.1.1 spec/unit/axiom/aggregate/sum/methods/sum_spec.rb