File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 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
2
3
3
4
before ( :all ) do
4
5
require 'mongoid'
5
6
require 'logger'
6
7
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 ) }
8
9
9
10
# if you want to see the statements while running the spec enable the following line
10
11
# Mongoid.logger = Logger.new(STDERR)
You can’t perform that action at this time.
0 commit comments