rspec-retry_ex 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/retry_ex/retry_handler.rb +4 -4
- data/lib/rspec/retry_ex/version.rb +1 -1
- data/lib/rspec/retry_ex.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 880c6f430c8c240e2fd2cc9e8becd1760ac3cf69ad4a79a57e1c2b98a943e17f
|
4
|
+
data.tar.gz: c2f630b03f22c4fe033a49f3d86ec3151d7c1b0d167e85f249aaa2593190304f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c96c20ca56adbd86d8e812705b7457a49d4e6ef9312ca0516e355c808090aae3cb8f71bd6fc5fc9a882b335eba792f72378409d6d64e628b6ab24eda88fdca2
|
7
|
+
data.tar.gz: 0e28d5cf1ae8379cf591561528b0a9a21c35afd251d1b5456010a7df69e82ea09e4d9a4ed4cfe35f11a13a7d38577f2eb608615cda998ae62431572fdb0336e1
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ RSpec::RetryEx retrys failing rspec "expect" instead of "example", "it" or "scen
|
|
8
8
|
## Motivation
|
9
9
|
Feature test or System test sometimes fails randomely. There are so many reasons for failing. One of them is that the browser does not response smoothly to JavaScript animation. However it responses somoothly in a few tries. As a result, a few retries should be executed in feature test of system test.
|
10
10
|
|
11
|
-
Thanks to [
|
11
|
+
Thanks to [rspec-retry](https://github.com/NoRedInk/rspec-retry) gem, a few retries can be executed by "scenario" unit. However we sometimes want to try to retry by "expect" unit because the scenario is so long and most "expect"s usually pass and specific "expect" often fails.
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -2,10 +2,10 @@ module RSpec
|
|
2
2
|
module RetryEx
|
3
3
|
class RetryHandler
|
4
4
|
def initialize(**options)
|
5
|
-
@count
|
6
|
-
@before_retry
|
7
|
-
@after_retry
|
8
|
-
@counter
|
5
|
+
@count = options[:count] || 1
|
6
|
+
@before_retry = options[:before_retry]
|
7
|
+
@after_retry = options[:after_retry]
|
8
|
+
@counter = 0
|
9
9
|
@retry_errors = initialize_retry_errors(options[:retry_errors])
|
10
10
|
end
|
11
11
|
|
data/lib/rspec/retry_ex.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-retry_ex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yuyasat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|
@@ -171,7 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
|
-
|
174
|
+
rubyforge_project:
|
175
|
+
rubygems_version: 2.7.6
|
175
176
|
signing_key:
|
176
177
|
specification_version: 4
|
177
178
|
summary: retry rspec one target `expect`
|