Sha256: 03a9a4d2a846ee2332f161b3ecb4418ac9aa2cf75e0a236d23a79f2f973fc6d2

Contents?: true

Size: 645 Bytes

Versions: 3

Compression:

Stored size: 645 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'rubygems'

gem "mocha", "0.9.8"

require "mocha"
require "mongoid"
require "spec"

Mongoid.connect_to("mongoid_test")

Spec::Runner.configure do |config|
  config.mock_with :mocha
end

class Person < Mongoid::Document
  fields \
    :title,
    :terms,
    :age
  has_many :addresses
  has_one :name
end

class Address < Mongoid::Document
  fields \
    :street,
    :city,
    :state,
    :post_code
  belongs_to :person
end

class Name < Mongoid::Document
  fields \
    :first_name,
    :last_name
  belongs_to :person
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
durran-mongoid-0.2.0 spec/spec_helper.rb
durran-mongoid-0.2.2 spec/spec_helper.rb
durran-mongoid-0.2.3 spec/spec_helper.rb