Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
support mongoid5
Browse files Browse the repository at this point in the history
  • Loading branch information
machu committed Oct 27, 2015
1 parent 679f991 commit abf40f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ test:
hosts:
- localhost:27017
options:
read: primary
read:
mode: :primary
# In the test environment we lower the retries and retry interval to
# low amounts for fast failures.
max_retries: 1
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

set :environment, :test

DatabaseCleaner[:mongoid, {:connection => :test}]
DatabaseCleaner[:mongoid]

RSpec.configure do |c|
c.include Rack::Test::Methods
Expand Down

0 comments on commit abf40f4

Please sign in to comment.