Sha256: 3d4f07728c930d46515f52370a792a3b14a5923448e724ea68c12f1c61dfb8be

Contents?: true

Size: 541 Bytes

Versions: 14

Compression:

Stored size: 541 Bytes

Contents

require 'spec_helper'

describe Ardm::Property::String do
  before do
    @name          = :name
    @type          = described_class
    @load_as     = 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 { is_expected.to be_kind_of(Hash) }

    it { is_expected.to eql(:load_as => @load_as, :dump_as => @load_as, :coercion_method => :to_string, :length => 50) }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ardm-0.4.0.ar427 spec/public/property/string_spec.rb
ardm-0.4.0 spec/public/property/string_spec.rb
ardm-0.3.2 spec/public/property/string_spec.rb
ardm-0.3.1 spec/public/property/string_spec.rb
ardm-0.3.0 spec/public/property/string_spec.rb
ardm-0.2.7 spec/public/property/string_spec.rb
ardm-0.2.6 spec/public/property/string_spec.rb
ardm-0.2.5 spec/public/property/string_spec.rb
ardm-0.2.4 spec/public/property/string_spec.rb
ardm-0.2.3 spec/public/property/string_spec.rb
ardm-0.2.2 spec/public/property/string_spec.rb
ardm-0.2.1 spec/public/property/string_spec.rb
ardm-0.2.0 spec/public/property/string_spec.rb
ardm-0.1.0 spec/public/property/string_spec.rb