Commit 912600bbc2dbfa4cc8724cb8a13a7a609c1e910f
1 parent
f646cf50
Exists in
master
and in
1 other branch
begin making specs work under mongoid5
Showing
3 changed files
with
1 additions
and
5 deletions
Show diff stats
Gemfile
Gemfile.lock
| ... | ... | @@ -99,7 +99,6 @@ GEM |
| 99 | 99 | thor (~> 0.19.1) |
| 100 | 100 | css_parser (1.3.6) |
| 101 | 101 | addressable |
| 102 | - database_cleaner (1.4.1) | |
| 103 | 102 | debug_inspector (0.0.2) |
| 104 | 103 | decent_exposure (2.3.2) |
| 105 | 104 | devise (3.5.1) |
| ... | ... | @@ -407,7 +406,6 @@ DEPENDENCIES |
| 407 | 406 | capybara |
| 408 | 407 | coffee-rails |
| 409 | 408 | coveralls |
| 410 | - database_cleaner | |
| 411 | 409 | decent_exposure |
| 412 | 410 | devise |
| 413 | 411 | dotenv-rails | ... | ... |
spec/spec_helper.rb
| ... | ... | @@ -38,8 +38,7 @@ RSpec.configure do |config| |
| 38 | 38 | config.alias_example_to :fit, :focused => true |
| 39 | 39 | |
| 40 | 40 | config.before(:each) do |
| 41 | - DatabaseCleaner[:mongoid].strategy = :truncation | |
| 42 | - DatabaseCleaner.clean | |
| 41 | + Mongoid.default_client.database.collections.each(&:drop) | |
| 43 | 42 | end |
| 44 | 43 | |
| 45 | 44 | config.include Haml, type: :helper | ... | ... |