Sha256: eeb5f72b7e6e92a9790e15237ed8893ee908e835f1d6461362fa7632a4e5d860
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe PriceAdjustment do it 'uses non-default column' do price_adjustment = PriceAdjustment.create expect(price_adjustment.document_number).not_to be_nil end it 'starts from predefined value' do price_adjustment = PriceAdjustment.create expect(price_adjustment.document_number).to eq('500') end it 'has sequence of numbers' do expect(PriceAdjustment.create.document_number).to eq('500') expect(PriceAdjustment.create.document_number).to eq('501') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
document_number-0.9.4 | spec/models/price_adjustment_spec.rb |
document_number-0.9.3 | spec/models/price_adjustment_spec.rb |
document_number-0.9.2 | spec/models/price_adjustment_spec.rb |