mock_zen 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mock_zen/stub.rb +3 -1
  2. metadata +4 -4
data/lib/mock_zen/stub.rb CHANGED
@@ -21,7 +21,9 @@ module MockZen
21
21
 
22
22
  private
23
23
  def method_missing(name, *args, &block)
24
- raise MockZen::UndefinedActionError, "Undefined action #{name}" unless @actions[name]
24
+ unless @actions.key? name
25
+ raise MockZen::UndefinedActionError, "Undefined action #{name}"
26
+ end
25
27
  @actions[name]
26
28
  end
27
29
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 2
9
- version: 0.2.2
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guilherme Carvalho
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-10 00:00:00 -03:00
17
+ date: 2010-04-14 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20