1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

fixed tests for Mongoid

This commit is contained in:
Thorsten Böttger 2013-04-21 19:20:53 +02:00
parent 461886e394
commit 55f6ccdcad
2 changed files with 15 additions and 2 deletions

12
HOWTO Normal file
View file

@ -0,0 +1,12 @@
How to
1. Run tests for Mongoid
Start MongoDB
$> mongod
Run the specs
$> rspec spec/unit/persistence/mongoid_persistance_spec.rb

View file

@ -1,10 +1,11 @@
describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
# describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
describe 'mongoid' do
before(:all) do
require 'mongoid'
require 'logger'
require 'spec_helper'
Dir[File.dirname(__FILE__) + "/../../models/*.rb"].sort.each { |f| require File.expand_path(f) }
Dir[File.dirname(__FILE__) + "/../../models/mongoid/*.rb"].sort.each { |f| require File.expand_path(f) }
# if you want to see the statements while running the spec enable the following line
# Mongoid.logger = Logger.new(STDERR)