Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoid 5.0.0beta Compatability? #3

Open
sliuu opened this issue Aug 24, 2015 · 1 comment
Open

Mongoid 5.0.0beta Compatability? #3

sliuu opened this issue Aug 24, 2015 · 1 comment

Comments

@sliuu
Copy link

sliuu commented Aug 24, 2015

Looks like database_cleaner is not compatible with the newest beta version of mongoid

undefined method `remove_all' for #<Mongo::Collection::View:0x00000006771220> (NoMethodError)
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/moped/truncation_base.rb:14:in `block in clean'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/moped/truncation_base.rb:14:in `each'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/moped/truncation_base.rb:14:in `clean'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/base.rb:86:in `clean'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:79:in `block in clean'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:79:in `each'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/database_cleaner-1.4.1/lib/database_cleaner/configuration.rb:79:in `clean'
      /home/ubuntu/myapp/vendor/bundle/ruby/2.2.0/gems/cucumber-rails-1.4.2/lib/cucumber/rails/hooks/database_cleaner.rb:9:in `After'
@geerzo
Copy link
Contributor

geerzo commented Aug 29, 2015

This is solved with DatabaseCleaner/database_cleaner#385

@botandrose botandrose transferred this issue from DatabaseCleaner/database_cleaner Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants