Sha256: a3f967798e3a93c6c7d721b484684af9a7859238d303cc8bc63d41ba91b80d47

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

# Load Remarkable
unless Object.const_defined?('Remarkable')
  begin
    require 'remarkable'
  rescue LoadError
    require 'rubygems'
    gem 'remarkable'
    require 'remarkable'
  end
end
 
# Add locale
dir = File.dirname(__FILE__)
Remarkable.add_locale File.join(dir, '..', '..', 'locales', 'en.yml')

require File.join(dir, 'mongo_mapper', 'base')
require File.join(dir, 'mongo_mapper', 'describe')
# require File.join(dir, 'remarkable_mongomapper', 'human_names')

# Add matchers
Dir[File.join(dir, 'mongo_mapper', 'matchers', '*.rb')].each do |file|
  require file
end

# Include Remarkable MongoMapper matcher in appropriate ExampleGroup
if defined?(Spec::Rails)
  Remarkable.include_matchers!(Remarkable::MongoMapper, Spec::Rails::Example::ModelExampleGroup)
else
  Remarkable.include_matchers!(Remarkable::MongoMapper, Spec::Example::ExampleGroup)
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
remarkable_mongo-0.1.4 lib/remarkable/mongo_mapper.rb
remarkable_mongo-0.1.3 lib/remarkable/mongo_mapper.rb
remarkable_mongo_ign-0.1.2 lib/remarkable/mongo_mapper.rb
ippy04-remarkable_mongo-0.1.3 lib/remarkable/mongo_mapper.rb
remarkable_mongo-0.1.2 lib/remarkable/mongo_mapper.rb