saimonmoore-database_cleaner 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/History.txt +81 -0
  2. data/LICENSE +20 -0
  3. data/README.textile +127 -0
  4. data/Rakefile +46 -0
  5. data/TODO +0 -0
  6. data/VERSION.yml +5 -0
  7. data/cucumber.yml +1 -0
  8. data/examples/features/example.feature +11 -0
  9. data/examples/features/step_definitions/example_steps.rb +8 -0
  10. data/examples/features/support/env.rb +23 -0
  11. data/examples/lib/activerecord_models.rb +12 -0
  12. data/examples/lib/couchpotato_models.rb +21 -0
  13. data/examples/lib/couchrest_models.rb +23 -0
  14. data/examples/lib/datamapper_models.rb +16 -0
  15. data/examples/lib/mongomapper_models.rb +17 -0
  16. data/features/cleaning.feature +21 -0
  17. data/features/step_definitions/database_cleaner_steps.rb +25 -0
  18. data/features/support/env.rb +7 -0
  19. data/lib/database_cleaner.rb +3 -0
  20. data/lib/database_cleaner/active_record/transaction.rb +26 -0
  21. data/lib/database_cleaner/active_record/truncation.rb +79 -0
  22. data/lib/database_cleaner/configuration.rb +128 -0
  23. data/lib/database_cleaner/couch_potato/truncation.rb +26 -0
  24. data/lib/database_cleaner/couchrest/compatibility.rb +12 -0
  25. data/lib/database_cleaner/couchrest/truncation.rb +28 -0
  26. data/lib/database_cleaner/cucumber.rb +8 -0
  27. data/lib/database_cleaner/data_mapper/transaction.rb +23 -0
  28. data/lib/database_cleaner/data_mapper/truncation.rb +142 -0
  29. data/lib/database_cleaner/mongo_mapper/truncation.rb +30 -0
  30. data/lib/database_cleaner/truncation_base.rb +41 -0
  31. data/spec/database_cleaner/active_record/truncation_spec.rb +66 -0
  32. data/spec/database_cleaner/configuration_spec.rb +104 -0
  33. data/spec/database_cleaner/couch_potato/truncation_spec.rb +40 -0
  34. data/spec/database_cleaner/couchrest/truncation_spec.rb +56 -0
  35. data/spec/database_cleaner/mongo_mapper/truncation_spec.rb +81 -0
  36. data/spec/spec.opts +6 -0
  37. data/spec/spec_helper.rb +12 -0
  38. metadata +104 -0
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: saimonmoore-database_cleaner
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Mabey
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-02-22 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Strategies for cleaning databases. Can be used to ensure a clean state for testing.
17
+ email: ben@benmabey.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.textile
25
+ - TODO
26
+ files:
27
+ - History.txt
28
+ - README.textile
29
+ - Rakefile
30
+ - VERSION.yml
31
+ - cucumber.yml
32
+ - examples/features/example.feature
33
+ - examples/features/step_definitions/example_steps.rb
34
+ - examples/features/support/env.rb
35
+ - examples/lib/activerecord_models.rb
36
+ - examples/lib/couchpotato_models.rb
37
+ - examples/lib/couchrest_models.rb
38
+ - examples/lib/datamapper_models.rb
39
+ - examples/lib/mongomapper_models.rb
40
+ - features/cleaning.feature
41
+ - features/step_definitions/database_cleaner_steps.rb
42
+ - features/support/env.rb
43
+ - lib/database_cleaner.rb
44
+ - lib/database_cleaner/active_record/transaction.rb
45
+ - lib/database_cleaner/active_record/truncation.rb
46
+ - lib/database_cleaner/configuration.rb
47
+ - lib/database_cleaner/couch_potato/truncation.rb
48
+ - lib/database_cleaner/couchrest/truncation.rb
49
+ - lib/database_cleaner/couchrest/compatibility.rb
50
+ - lib/database_cleaner/cucumber.rb
51
+ - lib/database_cleaner/data_mapper/transaction.rb
52
+ - lib/database_cleaner/data_mapper/truncation.rb
53
+ - lib/database_cleaner/mongo_mapper/truncation.rb
54
+ - lib/database_cleaner/truncation_base.rb
55
+ - spec/database_cleaner/active_record/truncation_spec.rb
56
+ - spec/database_cleaner/configuration_spec.rb
57
+ - spec/database_cleaner/couch_potato/truncation_spec.rb
58
+ - spec/database_cleaner/couchrest/truncation_spec.rb
59
+ - spec/database_cleaner/mongo_mapper/truncation_spec.rb
60
+ - spec/spec.opts
61
+ - spec/spec_helper.rb
62
+ - LICENSE
63
+ - TODO
64
+ has_rdoc: true
65
+ homepage: http://github.com/bmabey/database_cleaner
66
+ licenses: []
67
+
68
+ post_install_message:
69
+ rdoc_options:
70
+ - --charset=UTF-8
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ requirements: []
86
+
87
+ rubyforge_project:
88
+ rubygems_version: 1.3.5
89
+ signing_key:
90
+ specification_version: 3
91
+ summary: Strategies for cleaning databases. Can be used to ensure a clean state for testing.
92
+ test_files:
93
+ - spec/database_cleaner/active_record/truncation_spec.rb
94
+ - spec/database_cleaner/configuration_spec.rb
95
+ - spec/database_cleaner/couch_potato/truncation_spec.rb
96
+ - spec/database_cleaner/couchrest/truncation_spec.rb
97
+ - spec/database_cleaner/mongo_mapper/truncation_spec.rb
98
+ - spec/spec_helper.rb
99
+ - examples/features/step_definitions/example_steps.rb
100
+ - examples/features/support/env.rb
101
+ - examples/lib/activerecord_models.rb
102
+ - examples/lib/couchpotato_models.rb
103
+ - examples/lib/datamapper_models.rb
104
+ - examples/lib/mongomapper_models.rb