lib/pickle/world.rb in pickle-0.3.5 vs lib/pickle/world.rb in pickle-0.4.0
- old
+ new
@@ -1,9 +1,10 @@
require 'pickle'
-# auto require for active record and datamapper
+# auto require for active record, datamapper and mongoid
require 'pickle/adapters/active_record' if defined?(ActiveRecord::Base)
require 'pickle/adapters/data_mapper' if defined?(DataMapper::Resource)
+require 'pickle/adapters/mongoid' if defined?(Mongoid::Document)
# make cucumber world pickle aware
World(Pickle::Session)
# shortcuts to regexps for use in step definition regexps