Commit graph

35 commits

Author SHA1 Message Date
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
a31a0cf28a spoke to soon, spec was randomly failing, believe due to a require order problem , fixed by requiring active record in the ""required"" spec 2010-05-16 22:34:48 +01:00
Jon Rowe
201343af63 spec updates 2010-05-16 21:45:46 +01:00
Jon Rowe
6ce2df9373 datamapper specs 2010-05-16 21:45:31 +01:00
Jon Rowe
8da9150a1b Refactor 2010-05-04 21:07:21 +01:00
Jon Rowe
57c11963fb Refactor adaptors to reflect base class status, now strategy (as in generic) 2010-04-22 17:41:02 +01:00
Jon Rowe
00071394b6 heh, rename adaptor spec to adaptor_spec :P 2010-04-12 08:15:03 +01:00
Jon Rowe
6187b8114d start of genericising adaptor 2010-04-12 08:12:45 +01:00
Jon Rowe
a8fdc1ba67 Refactored specs 2010-04-12 08:12:00 +01:00
Jon Rowe
06c497cec0 more specs, adaptors 2010-04-07 22:35:46 +01:00
Jon Rowe
31ef2bbc71 base class specs refactoring 2010-04-01 08:22:01 +01:00
Jon Rowe
e3cb73c3ec base class specs refactoring 2010-04-01 08:18:10 +01:00
Jon Rowe
137a9c857a base class specs 2010-04-01 08:09:47 +01:00
Jon Rowe
5c8881a0f0 Refactored configuration specs 2010-04-01 08:09:31 +01:00
Jon Rowe
92c7ea170f more specs / implementation towards multiple orms and dbs 2010-04-01 07:39:51 +01:00
Jon Rowe
6e4c184294 More specs, multiple orms under way nicely, multiple db connections needs refactoring 2010-03-31 08:02:48 +01:00
Jon Rowe
f7858cd501 specs for multi orms/connections and some implementation 2010-03-30 22:49:30 +01:00
Jon Rowe
523399cd08 modified truncation to support multiple connections 2010-03-29 15:04:31 +01:00
Jon Rowe
7351497d4d Transactional support for multiple connections within activerecord 2010-03-29 14:34:44 +01:00
Jon Rowe
7648c3e5e6 specs for transaction 2010-03-29 12:55:03 +01:00
Ben Mabey
7671242b31 avoids AR deprecation warnings in specs 2010-03-21 11:16:14 -06:00
Ben Mabey
6ff2f91d38 Adds :only & :except support to MongoMapper truncation. Closes GH-3. 2010-02-22 11:51:26 -07:00
Martin Rehfeld
efe6bfc9a7 truncation support for CouchPotato / CouchDB 2010-02-04 02:17:37 +01:00
Ben Mabey
5dfb24de4a whitespace 2009-05-08 18:18:44 -06:00
Alberto Perdomo
80408434da Added truncation support for Postgresql. 2009-03-11 18:46:00 +00:00
Kamal Fariz Mahyuddin
6a646819d7 Add JdbcAdapter#truncate_table 2009-03-05 18:05:38 +08:00
Ben Mabey
066ba919ad DatabaseCleaner() method was cool, but really isn't needed... 2009-03-04 22:17:32 -07:00
Ben Mabey
3fc800e17a added clean_with shortcut method 2009-03-04 22:16:04 -07:00
Ben Mabey
43ad34fc2b added DatabaseCleaner() method to return a strategy 2009-03-04 22:11:58 -07:00
Ben Mabey
0b39edc8a4 gemspec, add pending specs 2009-03-04 21:48:41 -07:00
Ben Mabey
a96c0d5f93 truncation AR strategy now takes :only and :except so you can manage the tables you want to truncate 2009-03-04 21:31:12 -07:00
Ben Mabey
9fa3eb0818 allow setting of orm and skip autodetect 2009-03-04 14:00:20 -07:00
Ben Mabey
27e8b337f7 configuration change 2009-03-04 13:33:58 -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
Ben Mabey
00299245c8 Initial commit to database_cleaner. 2009-02-26 21:42:20 -07:00