Sha256: 7323f584059e5d0944de423147845c416b606c797ade7a5c02c9066aeedefcd4

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

require 'spec_helper'

describe DataMapper::Property::String do
  before :all do
    @name          = :name
    @type          = described_class
    @primitive     = String
    @value         = 'value'
    @other_value   = 'return value'
    @invalid_value = 1
  end

  it_should_behave_like 'A public Property'

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

    it { should be_kind_of(Hash) }

    it { should eql(:primitive => @primitive, :length => 50) }
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ardm-core-1.3.0 spec/public/property/string_spec.rb
ardm-core-1.2.1 spec/public/property/string_spec.rb
dm-core-1.2.1 spec/public/property/string_spec.rb
dm-core-1.2.0 spec/public/property/string_spec.rb
dm-core-1.2.0.rc2 spec/public/property/string_spec.rb
dm-core-1.2.0.rc1 spec/public/property/string_spec.rb