facon 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,7 @@
1
1
  === 0.1 / 2008-02-09
2
2
 
3
- * 1 XXX
4
- * XXX
3
+ * First release!
5
4
 
5
+ === 0.2 / 2008-02-13
6
+
7
+ * Use #after block to verify mocks so that the stack trace is more helpful (it now actually shows the line in the spec where the mock error occurred).
data/README.txt CHANGED
@@ -44,6 +44,11 @@ See Facon::Baconize for more documentation on using Facon with Bacon[http://ruby
44
44
  Simply install the gem:
45
45
  gem install facon
46
46
 
47
+ == The Source Code
48
+
49
+ You can get the latest trunk from the Subversion repository at:
50
+ svn://svn.codefront.net/facon/trunk
51
+
47
52
  == Links
48
53
 
49
54
  * Facon website - http://facon.rubyforge.org/
@@ -55,6 +60,8 @@ Simply install the gem:
55
60
 
56
61
  * test/unit and RSpec integration.
57
62
  * Remove the $facon_mocks global.
63
+ * Throw away unnecessary code.
64
+ * Implement exactly, at_least, at_most expectations.
58
65
 
59
66
  == Thanks to
60
67
 
@@ -46,9 +46,14 @@ module Facon
46
46
  end
47
47
 
48
48
  def it_with_mock_verification(description, &block)
49
+ before do
50
+ setup_facon_mocks
51
+ end
49
52
  setup_facon_mocks
53
+ after do
54
+ verify_facon_mocks
55
+ end
50
56
  it_without_mock_verification(description, &block)
51
- verify_facon_mocks
52
57
  end
53
58
  end
54
59
 
data/lib/facon.rb CHANGED
@@ -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.1'
15
+ VERSION = '0.2'
16
16
  end
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.1"
4
+ version: "0.2"
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-10 00:00:00 +08:00
12
+ date: 2008-02-13 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency