Sha256: 80eec597c639eb663b4e998528c0e77a8892d2f1160124ac1c328bda0959792f

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

require "mongo_mapper"
require "mongoid"
require "rspec"
require "active_record"
require "permalink"

# Setup ActiveRecord
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

# Setup MongoMapper
MongoMapper.connection = Mongo::Connection.new
MongoMapper.database = "permalink"

# Setup Mongoid
Mongoid.configure do |config|
  config.master = Mongo::Connection.new.db("permalink")
  config.persist_in_safe_mode = false
end

load("support/schema.rb")
require "support/page"
require "support/shared"
require "support/post"
require "support/article"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
permalink-1.2.1 spec/spec_helper.rb
permalink-1.2.0 spec/spec_helper.rb