rspec-wait 1.0.0 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1e5feca07bca8e8ce594d6d548a4b4cd898e2366ce601c28ec6ddd152a47a01
4
- data.tar.gz: eeab28ab6433f33f3c33eb83f2b1b086a403ae988950af63a4d963b595c76b63
3
+ metadata.gz: 55f8fdc4fbf01436c126c7f63222bb40289c1b38fcf6713ad8487c44ead3dd3d
4
+ data.tar.gz: 530916922b1c6664b0935a8dc3c8fe47ba7d07e1ae09b9cd6617bf3eadbf6d00
5
5
  SHA512:
6
- metadata.gz: f23e94176e14b0d5e03794e79f25cfc721a83cfd1f097c4902dea2a90974184fa9beefe4c4c2c1c7528c9a0a19bb38872421982c1bb98cfb9505d6ddf34c0373
7
- data.tar.gz: 51cbbf77176c670bae9d7446cdfb2e90813f11ca4bd7de31608228197d7ba4bc2e0d6398a987da0f4342cbcd6791e9d7e09ef4f81e2ac2a338dd45957c715e89
6
+ metadata.gz: 7ff2dbcbcf29b6545febf099dffb92f506ba839869d3e18313b2001e83d80386e920c0e64b4bb0d1e3d0dc229ad0b1be768eb67ef04a3918db6ffb066ade67cf
7
+ data.tar.gz: 1ff590e0c1acc3a7597f8bd500624c08b99d3e10a3a550a6361fceb75bce52bffb50e340a87a0eb4695dbfea757f8717abb1617b39bbc945021fe364d917b622
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # RSpec::Wait
2
2
 
3
- Wait for conditions in RSpec
3
+ Time-resilient expectations in RSpec
4
+
5
+ [![Made by laserlemon](https://img.shields.io/badge/laser-lemon-fc0?style=flat-square)](https://github.com/laserlemon)
6
+ [![Gem version](https://img.shields.io/gem/v/rspec-wait?style=flat-square)](https://rubygems.org/gems/rspec-wait)
7
+ [![Build status](https://img.shields.io/github/actions/workflow/status/laserlemon/rspec-wait/test.yml?style=flat-square)](https://github.com/laserlemon/rspec-wait/actions/workflows/test.yml)
4
8
 
5
- [![Gem Version](https://img.shields.io/gem/v/rspec-wait)](http://rubygems.org/gems/rspec-wait)
6
- [![Build Status](https://img.shields.io/github/actions/workflow/status/laserlemon/rspec-wait/rake.yml)](https://github.com/laserlemon/rspec-wait/actions/workflows/rake.yml)
7
- [![License](https://img.shields.io/github/license/laserlemon/rspec-wait)](https://github.com/laserlemon/rspec-wait/blob/-/LICENSE.txt)
8
9
 
9
10
  ## Why does RSpec::Wait exist?
10
11
 
@@ -181,7 +182,7 @@ per-context basis using `wait` metadata. Provide a hash containing any
181
182
  number of shorthand keys and values for RSpec::Wait's configurations.
182
183
 
183
184
  ```ruby
184
- scenario "A user can log in successfully", wait: { timeout: 3, delay: 0.5, clone_wait_matcher: true } do
185
+ scenario "A user can log in successfully", wait: { timeout: 3, delay: 0.5, clone_matcher: true } do
185
186
  visit new_session_path
186
187
 
187
188
  fill_in "Email", with: "john@example.com"
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Wait
5
- VERSION = ::Gem::Version.new("1.0.0")
5
+ VERSION = ::Gem::Version.new("1.0.2")
6
6
  end
7
7
  end
data/rspec-wait.gemspec CHANGED
@@ -4,7 +4,7 @@ require_relative "lib/rspec/wait/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rspec-wait"
7
- spec.summary = "Wait for conditions in RSpec"
7
+ spec.summary = "Time-resilient expectations in RSpec"
8
8
  spec.description = "RSpec::Wait enables time-resilient expectations in your RSpec test suite."
9
9
  spec.version = RSpec::Wait::VERSION
10
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-05-31 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rspec
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.6.0.dev
94
+ rubygems_version: 3.6.7
95
95
  specification_version: 4
96
- summary: Wait for conditions in RSpec
96
+ summary: Time-resilient expectations in RSpec
97
97
  test_files: []