rspec-expect_error 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/expect_error.rb +2 -2
- data/lib/rspec/expect_error/version.rb +1 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cad5d579c27eab753fc09e5c371fd63b6c7451d4
|
4
|
+
data.tar.gz: 0714941e472175f6e9a9bfa911e6a643285493a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 508e4be55ccfd16159a02929260a0a029e792767a5dca874f6ca267f99f0ff18dd2e69c482495fd19f9fbcc26d13955049442d15eb601f8d5276e1947d569747
|
7
|
+
data.tar.gz: 4666a4dd4e9bf6e2862fa57a69f8f32030400638768bbda27cf7aa2ed656a1f0a79f57e640eeb4cd650eba70f3883425c8ad88a8639455f3f3bdd41206dc94b2
|
data/lib/rspec/expect_error.rb
CHANGED
@@ -7,8 +7,8 @@ module RSpec
|
|
7
7
|
error ? expect { yield }.to(raise_error(error)) : expect { yield }.to(raise_error)
|
8
8
|
end
|
9
9
|
|
10
|
-
def expect_no_error(&block)
|
11
|
-
expect { yield }.not_to raise_error
|
10
|
+
def expect_no_error(error = nil, &block)
|
11
|
+
error ? expect { yield }.not_to(raise_error(error)) ? expect { yield }.not_to(raise_error)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-expect_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "<="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.1'
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "<="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3.1'
|
26
|
+
version: '0'
|
33
27
|
description: Provides a wrapper around expect {}.to raise_error.
|
34
28
|
email:
|
35
29
|
- envygeeks@gmail.com
|