rspec-wait 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bc52ca22433d99a8c0c0b849045c11ff8490b1a
4
- data.tar.gz: 9147c57528b64736b7967f868c8026bd61f7223c
3
+ metadata.gz: 495525abb8a3d573b621597494fa773ece371ee4
4
+ data.tar.gz: e76d1be08dbd4f95d88a45ea2bcc872996e0d43f
5
5
  SHA512:
6
- metadata.gz: 228f3a4e031da88dace9ac3d94e3ae7095dfd03595d5e5356baa3f27960a20b3fe698b4b3fce9b2b66344963a59950b10dd3c8bf34299d6f94e4bddaef0ebbd9
7
- data.tar.gz: 8adc9c2826346e582baa19b66a83306de7197da364d20d3bf88f7cc99a4a1a866b77882c6d2e67cc99951d595eb9b6ceff7e395d3c0987e0fc06f6eacead5249
6
+ metadata.gz: 30d3569ad87933d4e5fb2b2c02e4efaf516e57bcc281f293cae8ca80eee23b812b270fb671a7fe74ab16cf261568cce565485b76176593b33e5744e25f11b841
7
+ data.tar.gz: d478d93ab563cb426050953cbed3401ddca6a5066749007b525e75be51877d5d4609f26fd0fb18558e6162e6cc8a1005a62eef0e1141e8a09f0a25b7697582ea
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.6 / 2015-06-12
2
+
3
+ * [BUGFIX] Fix the `to_not` alias in cases where the condition is not met
4
+
1
5
  ## 0.0.5 / 2015-01-04
2
6
 
3
7
  * [ENHANCEMENT] Add support for RSpec 3.2
@@ -36,6 +36,8 @@ module RSpec
36
36
  with_wait { NegativeHandler.handle_matcher(@target, matcher, message, &block) }
37
37
  end
38
38
 
39
+ alias_method :to_not, :not_to
40
+
39
41
  private
40
42
 
41
43
  def with_wait
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"
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.7"
19
+ spec.add_development_dependency "bundler", "~> 1.10"
20
20
  spec.add_development_dependency "rake", "~> 10.4"
21
21
  end
@@ -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 { progress }.to_not eq("..")
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 { progress }.to_not eq("..")
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.5
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-02-04 00:00:00.000000000 Z
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.7'
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.7'
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.3
112
+ rubygems_version: 2.4.6
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Wait for conditions in RSpec