rspec-wait 0.0.2 → 0.0.3
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 +4 -4
- data/.rspec +3 -0
- data/.travis.yml +1 -0
- data/README.md +9 -8
- data/gemfiles/rspec_3_1.gemfile +9 -0
- data/rspec-wait.gemspec +3 -3
- data/spec/spec_helper.rb +0 -2
- metadata +9 -9
- data/spec/support/random.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19bcbef8a8f87e6d9eb2d9f827bbb8482339bd62
|
4
|
+
data.tar.gz: 84dbbd7b44d2df67ce8008ca2a081f9f2b9b3325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 390f1c7d712b747322ee45c71ca0fad89e34a9dd2eeb19472b4e378aa63773b5705d7a487549ec6a00a2d2880aa64d009b4445d787ca14afa5da99f2e3c07a4e
|
7
|
+
data.tar.gz: 06f7b337e642e87f7be0bdc525e72bd730333efa5ddc7f9991efdc3b928dc56814d1240b1a22b7ab02e79e1df21118abb7e2de1920d148775abed301332293d2
|
data/.rspec
ADDED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -27,9 +27,10 @@ RSpec::Wait will keep trying until your assertion passes or times out.
|
|
27
27
|
### Example
|
28
28
|
|
29
29
|
RSpec::Wait's `wait_for` assertions are nearly drop-in replacements for RSpec's
|
30
|
-
`expect` assertions. The major difference is that the `wait_for` method
|
31
|
-
|
32
|
-
while
|
30
|
+
`expect` assertions. The major difference is that the `wait_for` method only
|
31
|
+
works with non-block matchers. However, `wait_for` will still accept a block
|
32
|
+
because it may need to evaluate the content of that block multiple times while
|
33
|
+
waiting.
|
33
34
|
|
34
35
|
```ruby
|
35
36
|
describe Ticker do
|
@@ -41,13 +42,13 @@ describe Ticker do
|
|
41
42
|
end
|
42
43
|
|
43
44
|
it "starts a blank tape" do
|
44
|
-
expect
|
45
|
+
expect(ticker.tape).to eq("")
|
45
46
|
end
|
46
47
|
|
47
48
|
it "writes the message one letter at a time" do
|
48
|
-
wait_for
|
49
|
-
wait_for
|
50
|
-
wait_for
|
49
|
+
wait_for(ticker.tape).to eq("··-·")
|
50
|
+
wait_for(ticker.tape).to eq("··-· ---")
|
51
|
+
wait_for(ticker.tape).to eq("··-· --- ---")
|
51
52
|
end
|
52
53
|
end
|
53
54
|
end
|
@@ -76,7 +77,7 @@ end
|
|
76
77
|
### Matchers
|
77
78
|
|
78
79
|
RSpec::Wait ties into RSpec's internals so it can take full advantage of any
|
79
|
-
matcher that you would use with RSpec's own `expect` method.
|
80
|
+
non-block matcher that you would use with RSpec's own `expect` method.
|
80
81
|
|
81
82
|
## Who wrote RSpec::Wait?
|
82
83
|
|
data/rspec-wait.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rspec-wait"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.3"
|
6
6
|
|
7
7
|
spec.author = "Steve Richert"
|
8
8
|
spec.email = "steve.richert@gmail.com"
|
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
15
15
|
spec.test_files = spec.files.grep(/^spec/)
|
16
16
|
|
17
|
-
spec.add_dependency "rspec", ">= 2.11", "< 3.
|
17
|
+
spec.add_dependency "rspec", ">= 2.11", "< 3.2"
|
18
18
|
|
19
|
-
spec.add_development_dependency "bundler", "~> 1.
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
20
20
|
spec.add_development_dependency "rake", "~> 10.3"
|
21
21
|
end
|
data/spec/spec_helper.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: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Richert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '2.11'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '3.
|
22
|
+
version: '3.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '2.11'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '3.
|
32
|
+
version: '3.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.7'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.7'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,6 +65,7 @@ extensions: []
|
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
67
|
- ".gitignore"
|
68
|
+
- ".rspec"
|
68
69
|
- ".travis.yml"
|
69
70
|
- CHANGELOG.md
|
70
71
|
- CONTRIBUTING.md
|
@@ -77,13 +78,13 @@ files:
|
|
77
78
|
- gemfiles/rspec_2_13.gemfile
|
78
79
|
- gemfiles/rspec_2_14.gemfile
|
79
80
|
- gemfiles/rspec_3_0.gemfile
|
81
|
+
- gemfiles/rspec_3_1.gemfile
|
80
82
|
- lib/rspec/wait.rb
|
81
83
|
- lib/rspec/wait/error.rb
|
82
84
|
- lib/rspec/wait/handler.rb
|
83
85
|
- lib/rspec/wait/target.rb
|
84
86
|
- rspec-wait.gemspec
|
85
87
|
- spec/spec_helper.rb
|
86
|
-
- spec/support/random.rb
|
87
88
|
- spec/wait_for_spec.rb
|
88
89
|
homepage: https://github.com/laserlemon/rspec-wait
|
89
90
|
licenses:
|
@@ -105,11 +106,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
108
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.2
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: Wait for conditions in RSpec
|
112
113
|
test_files:
|
113
114
|
- spec/spec_helper.rb
|
114
|
-
- spec/support/random.rb
|
115
115
|
- spec/wait_for_spec.rb
|
data/spec/support/random.rb
DELETED