Skip to content

Commit 55f6ccd

Browse files
committed
fixed tests for Mongoid
1 parent 461886e commit 55f6ccd

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

HOWTO

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
How to
2+
3+
1. Run tests for Mongoid
4+
5+
Start MongoDB
6+
7+
$> mongod
8+
9+
Run the specs
10+
11+
$> rspec spec/unit/persistence/mongoid_persistance_spec.rb
12+

spec/unit/persistence/mongoid_persistance_spec.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
1+
# describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
2+
describe 'mongoid' do
23

34
before(:all) do
45
require 'mongoid'
56
require 'logger'
67
require 'spec_helper'
7-
Dir[File.dirname(__FILE__) + "/../../models/*.rb"].sort.each { |f| require File.expand_path(f) }
8+
Dir[File.dirname(__FILE__) + "/../../models/mongoid/*.rb"].sort.each { |f| require File.expand_path(f) }
89

910
# if you want to see the statements while running the spec enable the following line
1011
# Mongoid.logger = Logger.new(STDERR)

0 commit comments

Comments
 (0)