Commit graph

30 commits

Author SHA1 Message Date
James Conroy-Finn
b70f09a3ed Add Redis & Ohm support
This contains the work of @hbpoison, updated to work with the current
version of DatabaseCleaner.

https://github.com/bmabey/database_cleaner/pull/87/files
2013-05-11 14:21:43 +01:00
Petteri Räty
510f1bb48d Expose original exception if orm can't loaded
When running cucumber expose the original exception so that it's easier
to debug what's going on. I could not load couchpotato because of
require problems down the stack and with this I can see the actual
problem. With bundler we always have the dependencies installed.
2012-12-06 15:42:23 +02:00
Petteri Räty
65b6b4822f Comment out ruby-debug
The Gemfile does not pull it in any more as that gem is not working on
1.9. In order to run the cucumber features comment out the require for
now.
2012-12-06 15:00:25 +02:00
Ben Mabey
d23c17c05a changes key of passing in AR model to :model and documents it 2012-08-25 12:21:43 -06:00
Ben Mabey
c209f17052 verify that connection caching fixes outstanding bug 2012-08-25 12:14:22 -06:00
Ben Mabey
cb1e9edf31 get rid of cucumber step deprecation warnings 2012-08-05 20:30:40 -06:00
stanislaw
ee08c30de7 upgrade to RSpec2 2012-07-08 21:38:56 -06:00
Prem Sichanugrist
56ca7001d4 Add support for default strategy for each ORM
DatabaseCleaner will select the best default strategy based on the ORM you're using without having you to select it by yourself.

* ActiveRecord, DataMapper => :transaction
* MongoMapper, Mongoid, CouchPotato => :truncation
2011-01-16 23:41:10 +07:00
Ben Mabey
8b94d1928d kills whitespace 2010-08-23 14:50:32 -06:00
Jon Rowe
8dcbb697b1 finish merge, all specs, all features pass 2010-06-15 15:24:50 +01:00
Ben Mabey
23031933fa updates feature error message to match new expectation of CamelCase 2010-05-30 22:57:18 -06:00
Ben Mabey
0bcd3efcd0 updates bundler and adds needed symlinks to make features run w/bundler 2010-05-30 22:37:23 -06:00
Ben Mabey
bf55f75431 removes whitespace 2010-05-30 21:12:58 -06:00
Jon Rowe
b12d4fd3c1 updated features 2010-05-30 23:08:22 +01:00
Jon Rowe
a2b97f3a5b update steps and features into a cleaner fashion 2010-05-30 19:29:42 +01:00
Jon Rowe
b7fed145df refactor base to pass through database to strategy and let it decide to handle it, gracefully degrades (only errors upon attempt to use different database when strategy doesn't support it 2010-05-26 08:20:29 +01:00
Jon Rowe
d2da58156e Tweak features/steps for multiple orm, and fixed a bug in the couch example models 2010-05-25 18:21:45 +01:00
Jon Rowe
74575b9766 steps for multiple dbs 2010-05-17 18:06:10 +01:00
Jon Rowe
c6703f08a1 make help text slightly nicer 2010-05-17 18:05:43 +01:00
Jon Rowe
1f430a0ca3 changes to allow multiple orm features to run, pass for me, whoop whoop 2010-05-16 22:26:56 +01:00
Jon Rowe
688b720591 repair features and support to all pass for cleaning single orms/dbs, so legacy works, theres also some preperation for other modes 2010-05-16 21:44:09 +01:00
Jon Rowe
cfe09d618c cleanup of old example feature 2010-05-16 21:24:00 +01:00
Jon Rowe
edf0b63924 example features (to be run by the overall cleaning features) added for multiple dbs and multiple orms, can't guarentee they work yet 2010-05-16 21:22:55 +01:00
Jon Rowe
8da9150a1b Refactor 2010-05-04 21:07:21 +01:00
Ben Mabey
fb8431cb51 resolves breaking mongomapper feature 2010-02-18 18:37:24 -07:00
Martin Rehfeld
efe6bfc9a7 truncation support for CouchPotato / CouchDB 2010-02-04 02:17:37 +01:00
Aubrey Holland
857c5cf93c add mongo_mapper support 2009-12-23 13:54:17 -05:00
snusnu
da7b965369 more information on how to run the examples/features alone 2009-05-07 17:36:02 +02:00
Ben Mabey
5e8df327d8 cucumber feature and example app done. Got the AR transaction strategy done as well. 2009-03-03 21:53:21 -07:00
Ben Mabey
13a59fc3af initial work done. Have failing example feauture and main config module done. 2009-03-01 01:45:58 -07:00