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.
- data/lib/mock_zen/stub.rb +3 -1
- 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
|
-
|
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
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
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-
|
17
|
+
date: 2010-04-14 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|