Sha256: 80e7f8051167076890e1f7dbcee3ab309faccf6485bce365ef68d7b68209fab2
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
DatabaseCleaner[:mongo_mapper].strategy = :truncation DatabaseCleaner[:mongo_mapper].clean_with :truncation RSpec.configure do |config| config.before :suite do Doorkeeper::Application.create_indexes Doorkeeper::AccessGrant.create_indexes Doorkeeper::AccessToken.create_indexes end end module Doorkeeper class PlaceholderApplicationOwner include MongoMapper::Document set_collection_name "placeholder_application_owners" many :applications, :class => Doorkeeper::Application end module OrmHelper def mock_application_owner PlaceholderApplicationOwner.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | spec/support/orm/mongo_mapper.rb |