Sha256: 3294e43486c0c0fa206d976432e19dffe444514890a1f956bab744bde1d3e8eb

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

require_relative '../../spec_helper'

describe DataMapper::Property::Serial do
  before :all do
    @name          = :id
    @type          = described_class
    @load_as       = Integer
    @dump_as       = Integer
    @value         = 1
    @other_value   = 2
    @invalid_value = 'foo'
  end

  it_behaves_like 'A public Property'

  describe '.options' do
    subject { described_class.options }

    it { is_expected.to be_kind_of(Hash) }
    it { is_expected.to eql(load_as: @load_as, dump_as: @load_as, min: 1, serial: true) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-dm-core-1.3.0 spec/public/property/serial_spec.rb
sbf-dm-core-1.3.0.beta spec/public/property/serial_spec.rb