Sha256: c4da4db6353e9ffc73996065966f58b341e6dbf649e8490f1ceec98bedc96748

Contents?: true

Size: 436 Bytes

Versions: 7

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'

describe DataMapper::Property::Discriminator do
  before :all do
    Object.send(:remove_const, :Foo) if defined?(Foo)
    Object.send(:remove_const, :Bar) if defined?(Bar)

    class ::Foo; end
    class ::Bar; end

    @name          = :type
    @type          = described_class
    @value         = Foo
    @other_value   = Bar
    @invalid_value = 1
  end

  it_should_behave_like 'A semipublic Property'
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ardm-core-1.3.0 spec/semipublic/property/discriminator_spec.rb
ardm-core-1.2.1 spec/semipublic/property/discriminator_spec.rb
dm-core-1.2.1 spec/semipublic/property/discriminator_spec.rb
ghost_dm-core-1.3.0.beta spec/semipublic/property/discriminator_spec.rb
dm-core-1.2.0 spec/semipublic/property/discriminator_spec.rb
dm-core-1.2.0.rc2 spec/semipublic/property/discriminator_spec.rb
dm-core-1.2.0.rc1 spec/semipublic/property/discriminator_spec.rb