Sha256: 77ccd430041289ae7d32880f713796e8d3985286756d98d28c4e858f3ef7aa0f

Contents?: true

Size: 617 Bytes

Versions: 15

Compression:

Stored size: 617 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

15 entries across 15 versions & 1 rubygems

Version Path
doorkeeper-1.4.2 spec/support/orm/mongo_mapper.rb
doorkeeper-2.1.3 spec/support/orm/mongo_mapper.rb
doorkeeper-2.1.2 spec/support/orm/mongo_mapper.rb
doorkeeper-2.1.1 spec/support/orm/mongo_mapper.rb
doorkeeper-2.1.0 spec/support/orm/mongo_mapper.rb
doorkeeper-2.0.1 spec/support/orm/mongo_mapper.rb
doorkeeper-1.4.1 spec/support/orm/mongo_mapper.rb
doorkeeper-2.0.0 spec/support/orm/mongo_mapper.rb
doorkeeper-2.0.0.rc3 spec/support/orm/mongo_mapper.rb
doorkeeper-2.0.0.rc2 spec/support/orm/mongo_mapper.rb
doorkeeper-2.0.0.alpha1 spec/support/orm/mongo_mapper.rb
doorkeeper-1.4.0 spec/support/orm/mongo_mapper.rb
doorkeeper-1.3.1 spec/support/orm/mongo_mapper.rb
doorkeeper-1.3.0 spec/support/orm/mongo_mapper.rb
doorkeeper-1.2.0 spec/support/orm/mongo_mapper.rb