rspec_on_failure 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/README.md +3 -9
- data/lib/rspec_on_failure/version.rb +1 -1
- data/lib/rspec_on_failure.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfe76197162f75903969fc14398f10a0ef5303b7
|
4
|
+
data.tar.gz: 98ee7e8eaf05fc9a46ff902014e12c0064b79629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a568989a4a16620960e0e23d8ff8f2ccd743d733c5076caa4171d40d08ba0d1443fc5a1d5d516bf9c935601fd5516ba3cd8263b7889f8762b8bf8892b27fe041
|
7
|
+
data.tar.gz: 9e3cf964634da64774f6e1b48fd886aebbd747c6bc76d05f2c6f0ce939cb0d5da398c740da1a7c5257cc925b3305f431d2739b67b80c2afe5ac6af4c2ce0c020
|
data/README.md
CHANGED
@@ -24,21 +24,15 @@ example.
|
|
24
24
|
Add this line to your application's Gemfile:
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
|
27
|
+
group :test do
|
28
|
+
gem 'rspec_on_failure'
|
29
|
+
end
|
28
30
|
```
|
29
31
|
|
30
32
|
And then execute:
|
31
33
|
|
32
34
|
$ bundle
|
33
35
|
|
34
|
-
Or install it yourself as:
|
35
|
-
|
36
|
-
$ gem install rspec_on_failure
|
37
|
-
|
38
|
-
## Usage
|
39
|
-
|
40
|
-
TODO: Write usage instructions here
|
41
|
-
|
42
36
|
## Development
|
43
37
|
|
44
38
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/rspec_on_failure.rb
CHANGED
@@ -53,7 +53,7 @@ RSpec.configure do |config|
|
|
53
53
|
begin
|
54
54
|
if example.exception.is_a? RSpec::Expectations::ExpectationNotMetError
|
55
55
|
run_failure_call_proc example.metadata[:on_failure], example
|
56
|
-
puts %(@_on_failure_proc=#{(@_on_failure_proc).inspect})
|
56
|
+
#puts %(@_on_failure_proc=#{(@_on_failure_proc).inspect})
|
57
57
|
run_failure_call_proc @_on_failure_proc, example
|
58
58
|
end
|
59
59
|
ensure
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_on_failure
|
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
|
- Tyler Rick
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|