rspec-redo 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-redo/runner.rb +5 -3
- data/lib/rspec-redo/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: f0e9f5c0c2eb6b5072a6d65a27833d551c489cce
|
4
|
+
data.tar.gz: fafa7ce3efdf391b23a112df28b80ca89961604a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e068c20012f975bd81083cd99f5772d612a0f2f2eed6a049f6820a5c6f4b8c7908ba245d648d9e5d5215ce10d9e2cdddc7763c9c4c7aa7f048810aed1500aba
|
7
|
+
data.tar.gz: 3f5b7fcd5171da86cd621b05a2e438b0871cda35cef0a8b70aef45405c9432b38681f669fc7b466b877a7e1b6e3dd606334c14c2370dad19f19fa365523e4c25
|
data/lib/rspec-redo/runner.rb
CHANGED
@@ -39,14 +39,16 @@ module RSpecRedo
|
|
39
39
|
|
40
40
|
private
|
41
41
|
|
42
|
-
def run(
|
43
|
-
system('rspec', *rspec_opts, *
|
42
|
+
def run(args: [], env: ENV)
|
43
|
+
system(env, 'rspec', *rspec_opts, *args)
|
44
44
|
end
|
45
45
|
|
46
46
|
def rerun
|
47
47
|
$stderr.puts "*** Failures occurred. Attempting #{retry_count} more time(s)...\n\n"
|
48
48
|
self.retry_count -= 1
|
49
|
-
|
49
|
+
|
50
|
+
env = ENV.clone.tap { |e| e.store 'RSPEC_REDO', '1' }
|
51
|
+
run env: env, args: ['--only-failures']
|
50
52
|
end
|
51
53
|
|
52
54
|
def abort!
|
data/lib/rspec-redo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-redo
|
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
|
- Ray Zane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|