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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cffba32e60bdbd0ec9e83bf4539596775fc7c6e
4
- data.tar.gz: d30fd1cd679a525882f9dc55a07b40d9953ad891
3
+ metadata.gz: cad5d579c27eab753fc09e5c371fd63b6c7451d4
4
+ data.tar.gz: 0714941e472175f6e9a9bfa911e6a643285493a4
5
5
  SHA512:
6
- metadata.gz: 5e4bda6ca2703a4714fc4e175d92fba7c2849c1f426ade2dbe10dad7ebfa01960553157def68dc78c6185d964c14cf25e30bbbf65e2a7ca250f034c3e3846b39
7
- data.tar.gz: 621d0d72b265cdf4f4be6e49842e686d1a7d1537e3262f201592a0dad3c1e9200b723e91f804a05167d3c3f28993d7723f8b2798aeda41b9549f4f5bc012781b
6
+ metadata.gz: 508e4be55ccfd16159a02929260a0a029e792767a5dca874f6ca267f99f0ff18dd2e69c482495fd19f9fbcc26d13955049442d15eb601f8d5276e1947d569747
7
+ data.tar.gz: 4666a4dd4e9bf6e2862fa57a69f8f32030400638768bbda27cf7aa2ed656a1f0a79f57e640eeb4cd650eba70f3883425c8ad88a8639455f3f3bdd41206dc94b2
@@ -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
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module ExpectError
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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: '2.14'
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: '2.14'
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