Ruby Couchbase & Couchbase Model working with Cucumber/ DatabaseCleaner
May I know if anyone has tried working on Cucumber/DatabaseCleaner and Rails/Couchbase.
I was able to run Cucumber with Rails/Couchbase but I wish to know if anyone knows how to use it with DatabaseCleaner to clean up the DB after running the scenarios. I understand that DatabaseCleaner works with MongoDB and CouchDb but I wonder if any ORM provider could be plugged into Databasecleaner for use.
Currently, there is no Support for the Couchbase Model ORM with Database_Cleaner.
Database_Cleaner allows you to use parameters like :transaction, to roll back tests and :delete to clear out test records.
This isn't hugely necessary in Couchbase, as we'd recommend in Rails you setup your Couchbase bucket "mybucket_test" for testing, then use the built in 'Flush' functionality to clear the bucket out.
I hope this helps.