moped-cleaner
=============

Clean only models inserted when running tests with database interaction via moped

== Contributing to moped-cleaner

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature or bugfix branch.
* Commit and push until you are happy with your contribution.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2014 Brian Norton. See LICENSE for
further details.

moped-cleaner
=============

Clean only models inserted when running tests with database interaction via moped

####Installation:
```ruby
# Gemfile

group :test do
  gem 'moped-cleaner'
end

```

```ruby
# spec_helper.rb

RSpec.configure do |config|
  config.include Moped::Cleaner
  
  if defined?(Mongoid)
    Rails.application.eager_load!
    Mongoid.truncate!
  end
end
```

Contributing to moped-cleaner
=============

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature or bugfix branch.
* Commit and push until you are happy with your contribution.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright
=============

Copyright (c) 2014 Brian Norton. See LICENSE for
further details.

Add information about installation in Gemfile and spec_helper.rb
Add information about installation in Gemfile and spec_helper.rb