rspec-wait 1.0.0.rc1 → 1.0.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 +13 -0
- data/lib/rspec/wait/handler.rb +1 -1
- data/lib/rspec/wait/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 571ec853f48e6b4c04f9703dfdb118c79840e1faaa344505f47663c031e27178
|
4
|
+
data.tar.gz: e72a55bdd7cce040dca8d217935d63cbd9c5ee20684df327636d6d7c2adbbfb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a5d8c9a6d1a454f21bf942675d19961b0def0168c4fc33c17ba8c433a9e9a2d9b53e853e56f4917904344f09067b404ad14d7bcf594e840be2494d29a7755ba
|
7
|
+
data.tar.gz: 8b788a45f5eab52470a01aaa9869ae7c596682a523a2b8a9beacfa7934bcb20f42d529404d9a8b7f7c6056dafca5adcdeba17536f129fb0dca7deda408221895
|
data/README.md
CHANGED
@@ -133,6 +133,19 @@ environment:
|
|
133
133
|
require "rspec/wait"
|
134
134
|
```
|
135
135
|
|
136
|
+
### Upgrading from v0
|
137
|
+
|
138
|
+
RSpec::Wait v1 is very similar in syntax to v0 but does have a few breaking
|
139
|
+
changes that you should be aware of when upgrading from any 0.x version:
|
140
|
+
|
141
|
+
1. RSpec::Wait v1 requires Ruby 3.0 or greater and RSpec 3.4 or greater.
|
142
|
+
2. The `wait_for` and `wait.for` methods no longer accept arguments, only
|
143
|
+
blocks.
|
144
|
+
3. RSpec::Wait no longer uses Ruby's problematic `Timeout.timeout` method,
|
145
|
+
which means it will no longer raise a `RSpec::Wait::TimeoutError`.
|
146
|
+
RSpec::Wait v1 never interrupts the block given to `wait_for` mid-call
|
147
|
+
so make every effort to reasonably limit the block's individual call time.
|
148
|
+
|
136
149
|
## Configuration
|
137
150
|
|
138
151
|
RSpec::Wait has three available configuration values:
|
data/lib/rspec/wait/handler.rb
CHANGED
@@ -14,7 +14,7 @@ module RSpec
|
|
14
14
|
begin
|
15
15
|
matcher = RSpec.configuration.clone_wait_matcher ? initial_matcher.clone : initial_matcher
|
16
16
|
|
17
|
-
if matcher.supports_block_expectations?
|
17
|
+
if matcher.respond_to?(:supports_block_expectations?) && matcher.supports_block_expectations?
|
18
18
|
super(target, matcher, message, &block)
|
19
19
|
else
|
20
20
|
super(target.call, matcher, message, &block)
|
data/lib/rspec/wait/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-wait
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Richert
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -78,7 +78,7 @@ metadata:
|
|
78
78
|
homepage_uri: https://github.com/laserlemon/rspec-wait
|
79
79
|
rubygems_mfa_required: 'true'
|
80
80
|
source_code_uri: https://github.com/laserlemon/rspec-wait
|
81
|
-
post_install_message:
|
81
|
+
post_install_message:
|
82
82
|
rdoc_options: []
|
83
83
|
require_paths:
|
84
84
|
- lib
|
@@ -89,12 +89,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '3.0'
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - "
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: '0'
|
95
95
|
requirements: []
|
96
|
-
rubygems_version: 3.4.
|
97
|
-
signing_key:
|
96
|
+
rubygems_version: 3.4.19
|
97
|
+
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Wait for conditions in RSpec
|
100
100
|
test_files: []
|