pseudo_cleaner 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/pseudo_cleaner/spinach.rb +8 -10
- data/lib/pseudo_cleaner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODgxMjJmODBkNTRhMTIyMjQyMzM2NjQyNzgyYjlkZWM1OTZkMTJhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmZlM2NhOTJiYTYzZDVkNGNjMmVhMjMxYmY1YTVlNTBkNjE4NTEwZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjY2YWQwM2I4YmRiYTY2YTlkNmQ1OWQ1M2VmZGRmOTJkNjRiNzAyZjUxNjQ0
|
10
|
+
MDVlNjU0OTU1ZmNjYmQ0YWRlNGExOTc0YzRlNTA3MjAxZDNmNzQ4MmJhY2Y0
|
11
|
+
YTdlMTRjMzlhMDYwMzYwN2MzZmQ4NzY3Yzg5MzMwNDI5ZTNkMDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDY3MGEyZmQ2ZTk0MmJhMWViNmI3Y2VlODAxYTAxNWU0YTE0NjUzOWYxYzRh
|
14
|
+
YzRkM2U2YWQ5ZjQ2MzQ1NWZlYmZiY2RmMzUxMDFkOWNlYjdhNWI5OGI1YmUw
|
15
|
+
NDk0M2QwMzE3MDA3YjRhYWRkMjBkMWE3ZTQxZmU2Y2MwYzcxNTI=
|
@@ -2,7 +2,7 @@ first_test_run = false
|
|
2
2
|
|
3
3
|
# I haven't tested this fully yet, but I think that this should work.
|
4
4
|
|
5
|
-
Spinach.hooks.
|
5
|
+
Spinach.hooks.before_scenario do |scenario, step_definitions|
|
6
6
|
unless first_test_run
|
7
7
|
first_test_run = true
|
8
8
|
# before tests run...
|
@@ -16,22 +16,20 @@ Spinach.hooks.around_scenario do |scenario_data, step_definitions, &block|
|
|
16
16
|
DatabaseCleaner.strategy = :transaction
|
17
17
|
end
|
18
18
|
|
19
|
-
strategy = if
|
19
|
+
strategy = if scenario.tags.include?("@none")
|
20
20
|
:none
|
21
|
-
elsif
|
21
|
+
elsif scenario.tags.include?("@truncation")
|
22
22
|
:truncation
|
23
|
-
elsif
|
23
|
+
elsif scenario.tags.include?("@deletion")
|
24
24
|
:deletion
|
25
25
|
else
|
26
26
|
:pseudo_delete
|
27
27
|
end
|
28
|
-
PseudoCleaner::MasterCleaner.start_example(
|
28
|
+
PseudoCleaner::MasterCleaner.start_example(scenario, strategy)
|
29
|
+
end
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
ensure
|
33
|
-
PseudoCleaner::MasterCleaner.end_example(scenario_data)
|
34
|
-
end
|
31
|
+
Spinach.hooks.after_scenario do |scenario, step_definitions|
|
32
|
+
PseudoCleaner::MasterCleaner.end_example(scenario)
|
35
33
|
end
|
36
34
|
|
37
35
|
Spinach.hooks.after_run do |status|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pseudo_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RealNobody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|