Sha256: 3cae2a500e54e4b117f5e273d7d2d269287ae55f0b14215f97537f1397483324

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 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, 'remarkable_mongomapper', 'base')
 
# Add matchers
Dir[File.join(dir, 'remarkable_mongomapper', '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

2 entries across 2 versions & 1 rubygems

Version Path
yeastymobs-remarkable_mongomapper-0.0.1 lib/remarkable_mongomapper.rb
yeastymobs-remarkable_mongomapper-0.1.0 lib/remarkable_mongomapper.rb