rspec-expect_error 0.0.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bbf8f5a2398304e3203f1e143684812e34281b8e
4
+ data.tar.gz: 207f151f2227bbbcc7fc6577adf64063ad45bcd6
5
+ SHA512:
6
+ metadata.gz: 58d7d2e8b9ece88a236ed8c3f943ebb42f70a039443b8c28820682bc9a71a5ca5d035e3624a15a8d91a3e24f486ea2ec6c84d93480ba8990e70cbc818a80b748
7
+ data.tar.gz: e0ab80899bb6073d39ce064682b64e96080ed43e34e8d1ca06ed7995e11ab995c3a76a86925e739dd514fb2725958787151f7f1369887b924edb6fca24b1346f
data/License ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2013 Jordon Bedwell
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/Readme.md ADDED
@@ -0,0 +1,3 @@
1
+ # Rspec Expect Error
2
+
3
+ A wrapper for expect {}.to raise_error error that makes expect + to look nicer.
@@ -0,0 +1,5 @@
1
+ module RSpec
2
+ module ExpectError
3
+ VERSION = "0.0.2"
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ require "rspec/expect_error/version"
2
+
3
+ module RSpec
4
+ module ExpectError
5
+ def expect_error(error = nil, &block)
6
+ expect { yield }.to raise_error error
7
+ end
8
+ end
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.include RSpec::ExpectError
13
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec-expect_error
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Jordon Bedwell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '2.14'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.14'
27
+ description: Provides a wrapper around expect {}.to raise_error.
28
+ email:
29
+ - envygeeks@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - Readme.md
35
+ - License
36
+ - lib/rspec/expect_error.rb
37
+ - lib/rspec/expect_error/version.rb
38
+ homepage: https://github.com/envygeeks/rspec-expect_error
39
+ licenses:
40
+ - Apache 2.0
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.0.3
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Provides a wrapper around expect {}.to raise_error.
62
+ test_files: []