Sha256: 36e1af384ebf07adcd404342d2eb1ed12e0ac1e982096a4ca0b5a99a110cfb13
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Aggregate::Sum, '#default' do subject { object.default } let(:object) { described_class.new(attribute) } context 'when the attribute is an Integer' do let(:attribute) { Attribute::Integer.new(:integer) } it { should eql(0) } end context 'when the attribute is a Float' do let(:attribute) { Attribute::Float.new(:float) } it { should eql(0.0) } end context 'when the attribute is a Decimal' do let(:attribute) { Attribute::Decimal.new(:decimal) } it { should eql(0.0) } end end
Version data entries
4 entries across 4 versions & 1 rubygems