rspec-instafail 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/instafail.rb +6 -6
- data/lib/rspec/instafail/rspec_3.rb +1 -2
- data/lib/rspec/instafail/version.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: 0d96492823fa62306fd5e751ab8c00f41728e13d
|
4
|
+
data.tar.gz: 17b6f917345a160a9ac2300d18a223e12c4b2648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8516fc48f84f8f501b2a6607a13ae4020ff42a121696692fce12ffff5dcab797ea52daf7e753c6ebcb1f7eb07bd3dfdbe8df3e3c209a477e3c61b63f892e0b2b
|
7
|
+
data.tar.gz: ed69cdee84c2c47cf6ca5afb87f1478ad879a171753aa8f48e1c167b8babd2abe4b1306ec3511ea9ff24772334886accf4aa67ab7a8fe1db9c05c00d98f1185e
|
data/lib/rspec/instafail.rb
CHANGED
@@ -4,14 +4,14 @@ module RSpec
|
|
4
4
|
lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
5
5
|
$LOAD_PATH << lib unless $LOAD_PATH.include?(lib)
|
6
6
|
|
7
|
-
if defined?(::RSpec::Core)
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
if defined?(::RSpec::Core)
|
8
|
+
if ::RSpec::Core::Version::STRING >= '3.0.0'
|
9
|
+
require "rspec/instafail/rspec_3"
|
10
|
+
else
|
11
11
|
require "rspec/instafail/rspec_2"
|
12
|
-
rescue LoadError # try rspec 1
|
13
|
-
require "rspec/instafail/rspec_1"
|
14
12
|
end
|
13
|
+
else
|
14
|
+
require "rspec/instafail/rspec_1"
|
15
15
|
end
|
16
16
|
|
17
17
|
require 'rspec/instafail/version'
|
@@ -6,13 +6,12 @@ module RSpec
|
|
6
6
|
|
7
7
|
def initialize(output)
|
8
8
|
super
|
9
|
-
@output = output
|
10
9
|
@failed_examples = []
|
11
10
|
end
|
12
11
|
|
13
12
|
def example_failed(failure)
|
14
13
|
@failed_examples << failure.example
|
15
|
-
|
14
|
+
output.puts failure.fully_formatted(@failed_examples.size)
|
16
15
|
end
|
17
16
|
end
|
18
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-instafail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|