Sha256: 6a6ad33747a9606cf1ede6dbbd6d5b8a1683d15521c92360b3b3bf905acd7b00
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 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 be_kind_of(attribute.type.primitive) } it { should be_zero } end context 'when the attribute is a Float' do let(:attribute) { Attribute::Float.new(:float) } it { should be_instance_of(attribute.type.primitive) } it { should be_zero } end context 'when the attribute is a Decimal' do let(:attribute) { Attribute::Decimal.new(:decimal) } it { should be_instance_of(attribute.type.primitive) } it { should be_zero } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/axiom/aggregate/sum/default_spec.rb |