saimonmoore-database_cleaner 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +81 -0
- data/LICENSE +20 -0
- data/README.textile +127 -0
- data/Rakefile +46 -0
- data/TODO +0 -0
- data/VERSION.yml +5 -0
- data/cucumber.yml +1 -0
- data/examples/features/example.feature +11 -0
- data/examples/features/step_definitions/example_steps.rb +8 -0
- data/examples/features/support/env.rb +23 -0
- data/examples/lib/activerecord_models.rb +12 -0
- data/examples/lib/couchpotato_models.rb +21 -0
- data/examples/lib/couchrest_models.rb +23 -0
- data/examples/lib/datamapper_models.rb +16 -0
- data/examples/lib/mongomapper_models.rb +17 -0
- data/features/cleaning.feature +21 -0
- data/features/step_definitions/database_cleaner_steps.rb +25 -0
- data/features/support/env.rb +7 -0
- data/lib/database_cleaner.rb +3 -0
- data/lib/database_cleaner/active_record/transaction.rb +26 -0
- data/lib/database_cleaner/active_record/truncation.rb +79 -0
- data/lib/database_cleaner/configuration.rb +128 -0
- data/lib/database_cleaner/couch_potato/truncation.rb +26 -0
- data/lib/database_cleaner/couchrest/compatibility.rb +12 -0
- data/lib/database_cleaner/couchrest/truncation.rb +28 -0
- data/lib/database_cleaner/cucumber.rb +8 -0
- data/lib/database_cleaner/data_mapper/transaction.rb +23 -0
- data/lib/database_cleaner/data_mapper/truncation.rb +142 -0
- data/lib/database_cleaner/mongo_mapper/truncation.rb +30 -0
- data/lib/database_cleaner/truncation_base.rb +41 -0
- data/spec/database_cleaner/active_record/truncation_spec.rb +66 -0
- data/spec/database_cleaner/configuration_spec.rb +104 -0
- data/spec/database_cleaner/couch_potato/truncation_spec.rb +40 -0
- data/spec/database_cleaner/couchrest/truncation_spec.rb +56 -0
- data/spec/database_cleaner/mongo_mapper/truncation_spec.rb +81 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +12 -0
- 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
|