fixed tests for Mongoid
This commit is contained in:
parent
461886e394
commit
55f6ccdcad
|
@ -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
|
||||||
|
|
|
@ -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
|
before(:all) do
|
||||||
require 'mongoid'
|
require 'mongoid'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
require 'spec_helper'
|
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
|
# if you want to see the statements while running the spec enable the following line
|
||||||
# Mongoid.logger = Logger.new(STDERR)
|
# Mongoid.logger = Logger.new(STDERR)
|
||||||
|
|
Loading…
Reference in New Issue