facon 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.3.1 / 2008-02-19
2
+
3
+ * Fixed a bug where mocks were not being teared down when there is a previous spec failure.
4
+
1
5
  === 0.3 / 2008-02-18
2
6
 
3
7
  * Fixed a bug with proxied methods not being cleared.
@@ -12,5 +12,5 @@ require 'facon/core_ext/object'
12
12
  # Facon is a mocking library in the spirit of the Bacon spec library. Small,
13
13
  # compact, and works with Bacon.
14
14
  module Facon
15
- VERSION = '0.3'
15
+ VERSION = '0.3.1'
16
16
  end
@@ -52,11 +52,10 @@ module Facon
52
52
 
53
53
  def it_with_mock_verification(description, &block)
54
54
  @before.unshift(lambda { setup_facon_mocks })
55
- after do
56
- verify_facon_mocks
57
- teardown_facon_mocks
58
- end
55
+ @after << lambda { verify_facon_mocks }
59
56
  it_without_mock_verification(description, &block)
57
+ ensure
58
+ teardown_facon_mocks
60
59
  end
61
60
  end
62
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facon
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cheah Chu Yeow
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-18 00:00:00 +08:00
12
+ date: 2008-02-19 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency