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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9a6deaa86f5be34f6897add857e7fa2d045f26944ca58330f65a5a69fc353b3
4
- data.tar.gz: 4e157ff755b3c1067cb058bc2479f3cbdd243a8edeef89018d31874e2f0447df
3
+ metadata.gz: 153684ac945a635e4abad5c5f52d68d6a7f5e7fc9801954e817eed1857364e20
4
+ data.tar.gz: d93416a3672d13987fbd694f7f22644622ee59f8ad42fc14180f3dd6380e29c1
5
5
  SHA512:
6
- metadata.gz: 2e28048bc379d80f8a20349fd1a80ff38243846cff19f36430c22b58d335554724f8ab608225efd8b28cda4cd5537a19d095b9321e89e207a3e2bb362878ddf4
7
- data.tar.gz: 9414cbb506b2e92def9555e696ab0dfd2fe7d0756a4ae65363002ae8f4e5949a572a6cb53b28495f738861869f5b700ac15b534d714b0d6f43459f9784d1180e
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
 
@@ -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
- mgr.eval_scenario
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'watchdoge'
3
- s.version = '0.1.22'
3
+ s.version = '0.1.23'
4
4
  s.date = '2019-07-22'
5
5
  s.summary = "dogi"
6
6
  s.description = "WatchDoge is Ruby on Rails friendly frontend regression test tool"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdoge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shen Lee