spec 5.0.16 → 5.0.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59684a7457335516f5fa0d7ad8fdb2bbd256b849
4
- data.tar.gz: a0606a03e5b73d3ed796e7759a9f082d655abf55
3
+ metadata.gz: 105250509daef9a0dbf67696e9561affb8f4ceb2
4
+ data.tar.gz: 6d6bd09802efacb5810970ef77cd3e8b61193c07
5
5
  SHA512:
6
- metadata.gz: e8066f3efcc272b02b2746b6ce8519b210bee804ce011c42b0c0e59ed016ddb910de321e2d88d994a6bd2f3e767d1efed3fe460cb13f7bd8cebe0d336c3cd35f
7
- data.tar.gz: 8823466ce4f0390e97d523b54bf561587a3bd90909a20edcc50d28ac462c86c50ef90c6e2bc9e074a786eb24a59b9c683f61b2024a99a8977933e5d5b4bd4811
6
+ metadata.gz: 10c1a8512dc928258394538fef6d9948a074f07ada525fd7453c1f2f98056bcc6818afaf33c1c9dc887db33190e6f8338ec7e59e322c9b90664f0e21eb71fb3d
7
+ data.tar.gz: 62e15bc127b2082f402c4f26ad10df4e2313a80f735dbf495e63b35c49ce1e075cd12392c731ac020692cbf0b6d8b0caf6329dd2a85d98bb9641fbbf656f9feb
@@ -5,8 +5,8 @@ require 'chronic_duration'
5
5
  # :include: README.txt
6
6
 
7
7
  module Minitest
8
- VERSION = '5.0.16' # :nodoc:
9
- DATE = '2013-08-10' # :nodoc:
8
+ VERSION = '5.0.17' # :nodoc:
9
+ DATE = '2013-08-12' # :nodoc:
10
10
 
11
11
  @@installed_at_exit ||= false
12
12
  @@after_run = []
@@ -194,6 +194,15 @@ module Minitest
194
194
  rescue Minitest::Runnable::ExitAfterFirstFail
195
195
  # Minitest calls .report on exception
196
196
  end
197
+
198
+ # handle exit. code from self.autorun
199
+ at_exit {
200
+ next if $! and not $!.kind_of? SystemExit
201
+ at_exit {
202
+ @@after_run.reverse_each(&:call)
203
+ exit reporter.passed? || false
204
+ }
205
+ }
197
206
  end
198
207
 
199
208
  def self.process_args args = [] # :nodoc:
@@ -1,3 +1,9 @@
1
+ #### v5.0.16 2013-08-10
2
+
3
+ - [01269eb](https://github.com/bootstraponline/spec/commit/01269eb8f6e6209c5de9f55a0735ce23935d995a) Release 5.0.16
4
+ - [40504bb](https://github.com/bootstraponline/spec/commit/40504bbc92639baa24858a11f1ac931010980499) Print test name
5
+
6
+
1
7
  #### v5.0.15 2013-08-07
2
8
 
3
9
  - [c1f227c](https://github.com/bootstraponline/spec/commit/c1f227ca8f2803d2fe4da8caf7106f8cdda206e6) Release 5.0.15
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'stringio' # stdlib
5
+ require 'spec' # not 'minitest'
6
+
7
+ describe 'a' do
8
+ t('b') { 1 }
9
+ t('c') { 2 }
10
+ end
11
+
12
+ Minitest.after_run do
13
+ $stdout.puts 'after run!'
14
+ end
15
+
16
+ # Run specs and trace this file
17
+ Minitest.run_specs({ :trace => [__FILE__] })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.16
4
+ version: 5.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-10 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic_duration
@@ -87,6 +87,7 @@ files:
87
87
  - readme.md
88
88
  - release_notes.md
89
89
  - spec.gemspec
90
+ - test/manual/after_run.rb
90
91
  - test/manual/appium.rb
91
92
  - test/manual/appium_after_last.rb
92
93
  - test/manual/appium_before_first.rb