spicycode-micronaut 0.2.1.2 → 0.2.1.3

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/micronaut/example.rb +6 -3
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rubygems/specification'
4
4
  require 'lib/micronaut/rake_task'
5
5
 
6
6
  GEM = "micronaut"
7
- GEM_VERSION = "0.2.1.2"
7
+ GEM_VERSION = "0.2.1.3"
8
8
  AUTHOR = "Chad Humphries"
9
9
  EMAIL = "chad@spicycode.com"
10
10
  HOMEPAGE = "http://github.com/spicycode/micronaut"
@@ -47,23 +47,26 @@ module Micronaut
47
47
  @reporter.example_started(self)
48
48
 
49
49
  all_systems_nominal = true
50
-
50
+ exception_encountered = nil
51
+
51
52
  begin
52
53
  run_before_each
53
54
  run_example
54
55
  rescue Exception => e
55
- @reporter.example_failed(self, e)
56
+ exception_encountered = e
56
57
  all_systems_nominal = false
57
58
  end
58
59
 
59
60
  begin
60
61
  run_after_each
61
62
  rescue Exception => e
62
- @reporter.example_failed(self, e)
63
+ exception_encountered ||= e
63
64
  all_systems_nominal = false
64
65
  ensure
65
66
  @behaviour_instance.running_example = nil
66
67
  end
68
+
69
+ @reporter.example_failed(self, exception_encountered) if exception_encountered
67
70
 
68
71
  all_systems_nominal
69
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicycode-micronaut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.2
4
+ version: 0.2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries
@@ -9,7 +9,7 @@ autorequire: micronaut
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-15 00:00:00 -08:00
12
+ date: 2009-01-16 00:00:00 -08:00
13
13
  default_executable: micronaut
14
14
  dependencies: []
15
15