Sha256: ef9f5e96dfbad551753bfa84785a9cfdaf484b8dbfdaa0dc356522fc2d688e19
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 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') require File.join(dir, 'remarkable_mongomapper', 'describe') # require File.join(dir, 'remarkable_mongomapper', 'human_names') # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yeastymobs-remarkable_mongomapper-0.1.1 | lib/remarkable_mongomapper.rb |