Sha256: 820dc32fc65cd51c5a5317733ef315d5cea8151188fab435196c436255df1560
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
DatabaseCleaner[:mongoid].strategy = :truncation DatabaseCleaner[:mongoid].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 Mongoid::Document self.store_in :placeholder_application_owners has_many :applications end module OrmHelper def mock_application_owner PlaceholderApplicationOwner.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.5.0 | spec/support/orm/mongoid.rb |
doorkeeper-0.5.0.rc1 | spec/support/orm/mongoid.rb |