Sha256: 54ac797ea905d43dcc829c088aaf3d8dab786d26f59d3d6b6bfa6151d1a8dde7

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'mongoid'
require 'mongoid_paperclip'
require 'mongoid_paperclip_image_dimension'
require 'database_cleaner'

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Mongoid.configure do |config|
  config.master = Mongo::Connection.new.db("mongoid_paperclip_image_dimension_test")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid_paperclip_image_dimension-0.1.2 spec/spec_helper.rb
mongoid_paperclip_image_dimension-0.1.1 spec/spec_helper.rb
mongoid_paperclip_image_dimension-0.1.0 spec/spec_helper.rb