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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e5da77ce68d89df82c445a848fbbc87f9234a06
4
- data.tar.gz: 3f21197b1b80652ef9b19ff157319ac154564e04
3
+ metadata.gz: f0e9f5c0c2eb6b5072a6d65a27833d551c489cce
4
+ data.tar.gz: fafa7ce3efdf391b23a112df28b80ca89961604a
5
5
  SHA512:
6
- metadata.gz: 500af6d6a179a05115ee4c8503f7289e0f5075c3ff7e412045930726cedf733323ecae7d5f38173f7dd0ce210fad636aca5c200b4cc16190f3e8db63278b9f22
7
- data.tar.gz: 9b612e79d7390352ab55f1e57c15bb7cc2fd9010989b7e5573ae47658348f2f896c13ae92f80a4e38acc9176bd0c09457839c5cf6f3fa04a2db689241f18197d
6
+ metadata.gz: 7e068c20012f975bd81083cd99f5772d612a0f2f2eed6a049f6820a5c6f4b8c7908ba245d648d9e5d5215ce10d9e2cdddc7763c9c4c7aa7f048810aed1500aba
7
+ data.tar.gz: 3f5b7fcd5171da86cd621b05a2e438b0871cda35cef0a8b70aef45405c9432b38681f669fc7b466b877a7e1b6e3dd606334c14c2370dad19f19fa365523e4c25
@@ -39,14 +39,16 @@ module RSpecRedo
39
39
 
40
40
  private
41
41
 
42
- def run(*extra_opts)
43
- system('rspec', *rspec_opts, *extra_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
- run '--only-failures'
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!
@@ -1,3 +1,3 @@
1
1
  module RSpecRedo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-01-22 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec