rspec-wait 0.0.5 → 0.0.6
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/CHANGELOG.md +4 -0
- data/lib/rspec/wait/target.rb +2 -0
- data/rspec-wait.gemspec +2 -2
- data/spec/wait_for_spec.rb +8 -2
- data/spec/wait_spec.rb +8 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495525abb8a3d573b621597494fa773ece371ee4
|
4
|
+
data.tar.gz: e76d1be08dbd4f95d88a45ea2bcc872996e0d43f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30d3569ad87933d4e5fb2b2c02e4efaf516e57bcc281f293cae8ca80eee23b812b270fb671a7fe74ab16cf261568cce565485b76176593b33e5744e25f11b841
|
7
|
+
data.tar.gz: d478d93ab563cb426050953cbed3401ddca6a5066749007b525e75be51877d5d4609f26fd0fb18558e6162e6cc8a1005a62eef0e1141e8a09f0a25b7697582ea
|
data/CHANGELOG.md
CHANGED
data/lib/rspec/wait/target.rb
CHANGED
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.6"
|
6
6
|
|
7
7
|
spec.author = "Steve Richert"
|
8
8
|
spec.email = "steve.richert@gmail.com"
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.add_dependency "rspec", ">= 2.11", "< 3.3"
|
18
18
|
|
19
|
-
spec.add_development_dependency "bundler", "~> 1.
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
20
20
|
spec.add_development_dependency "rake", "~> 10.4"
|
21
21
|
end
|
data/spec/wait_for_spec.rb
CHANGED
@@ -135,12 +135,18 @@ describe "wait_for" do
|
|
135
135
|
}.to raise_error(RuntimeError)
|
136
136
|
end
|
137
137
|
|
138
|
-
it "respects the to_not alias" do
|
138
|
+
it "respects the to_not alias when expectation is met" do
|
139
139
|
expect {
|
140
|
-
wait_for {
|
140
|
+
wait_for { true }.to_not eq(false)
|
141
141
|
}.not_to raise_error
|
142
142
|
end
|
143
143
|
|
144
|
+
it "respects the to_not alias when expectation is not met" do
|
145
|
+
expect {
|
146
|
+
wait_for { true }.to_not eq(true)
|
147
|
+
}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
|
148
|
+
end
|
149
|
+
|
144
150
|
it "prevents operator matchers" do
|
145
151
|
expect {
|
146
152
|
wait_for { progress }.not_to == ".."
|
data/spec/wait_spec.rb
CHANGED
@@ -148,12 +148,18 @@ describe "wait" do
|
|
148
148
|
}.to raise_error(RuntimeError)
|
149
149
|
end
|
150
150
|
|
151
|
-
it "respects the to_not alias" do
|
151
|
+
it "respects the to_not alias when expectation is met" do
|
152
152
|
expect {
|
153
|
-
wait.for {
|
153
|
+
wait(1).for { true }.to_not eq(false)
|
154
154
|
}.not_to raise_error
|
155
155
|
end
|
156
156
|
|
157
|
+
it "respects the to_not alias when expectation is not met" do
|
158
|
+
expect {
|
159
|
+
wait(1).for { true }.to_not eq(true)
|
160
|
+
}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
|
161
|
+
end
|
162
|
+
|
157
163
|
it "prevents operator matchers" do
|
158
164
|
expect {
|
159
165
|
wait.for { progress }.not_to == ".."
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Richert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.10'
|
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.10'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.4.
|
112
|
+
rubygems_version: 2.4.6
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Wait for conditions in RSpec
|