watchdoge 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchdoge/configuration.rb +2 -0
- data/lib/watchdoge/regression.rb +6 -1
- data/watchdoge.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 153684ac945a635e4abad5c5f52d68d6a7f5e7fc9801954e817eed1857364e20
|
4
|
+
data.tar.gz: d93416a3672d13987fbd694f7f22644622ee59f8ad42fc14180f3dd6380e29c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc45d8b4fc60cd9ea59e36547db7137b471db841356d813c460b8ce73b43bb5b56fffad55653c79e4711498b831f5599762e9ed4276f7b0a0ac17456524089b1
|
7
|
+
data.tar.gz: 1e0e812a73a261462c306c0263aa2ff6bb6ae12dcd368dbd8daea9a976408bdc8c50cd3191aeba6e7a37e4fe163e8a35376ab9b84c4a870e491925fa85692354
|
@@ -17,12 +17,14 @@ module WatchDoge
|
|
17
17
|
attr_accessor :after_regression
|
18
18
|
attr_accessor :before_scenario
|
19
19
|
attr_accessor :after_scenario
|
20
|
+
attr_accessor :around_scenario
|
20
21
|
|
21
22
|
def initialize
|
22
23
|
@before_regression = []
|
23
24
|
@after_regression = []
|
24
25
|
@before_scenario = []
|
25
26
|
@after_scenario = []
|
27
|
+
@around_scenario = nil
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
data/lib/watchdoge/regression.rb
CHANGED
@@ -26,7 +26,12 @@ module WatchDoge
|
|
26
26
|
WatchDoge.hooks.before_scenario.each { |t| t.call }
|
27
27
|
|
28
28
|
mgr = self.new scenario_path, regression_flag: regression_flag
|
29
|
-
|
29
|
+
|
30
|
+
if WatchDoge.hooks.around_scenario
|
31
|
+
WatchDoge.hooks.around_scenario.call(Proc.new { mgr.eval_scenario })
|
32
|
+
else
|
33
|
+
mgr.eval_scenario
|
34
|
+
end
|
30
35
|
|
31
36
|
WatchDoge.hooks.after_scenario.each { |t| t.call }
|
32
37
|
end
|
data/watchdoge.gemspec
CHANGED