Sha256: 8ad0e49c76552eca7edbd12f25ec65beee1898de7d6277b48a43abf81159422a

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec_helper'))

describe DataMapper::Mongo::Property::DBRef do
  before(:all) do
    class User
      include DataMapper::Mongo::Resource

      property :id,       ObjectId
      property :group_id, DBRef
    end

    @property_class = DataMapper::Mongo::Property::DBRef
    @property       = User.properties[:group_id]
  end

  it_should_behave_like 'An ObjectId Type'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-mongo-adapter-0.6.0 spec/public/properties/db_ref_spec.rb