public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Search Repo:
fake_out_runtime and clear_all_apps methods for verify
automatthew (author)
Wed Jul 23 09:59:55 -0700 2008
commit  bac7cb35388eeb64d3f2af1449b17fa527004e4a
tree    8877b45bc30cf9622d24de6ac61a9e592cc41bc8
parent  15067219f3898bffe8a0ce2ee9a0fd5f099449fe
...
13
14
15
 
 
 
16
17
18
 
 
 
 
 
 
19
20
21
...
57
58
59
60
61
62
63
...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
...
66
67
68
 
69
70
71
0
@@ -13,9 +13,18 @@ module Kernel
0
   def specification(name, &block) Bacon::Context.new(name, &block) end
0
 end
0
 
0
+def clear_all_apps
0
+ Waves.instance_variable_set(:@applications, nil)
0
+end
0
 
0
 Bacon::Context.module_eval do
0
   
0
+ def fake_out_runtime
0
+ runtime = mock( "runtime")
0
+ runtime.stub!(:config).and_return(Waves.application.configurations[:development])
0
+ Waves::Application.stub!(:instance).and_return(runtime)
0
+ end
0
+
0
   # Mapping helpers
0
   def mapping
0
     ::Waves::Application.instance.mapping
0
@@ -57,7 +66,6 @@ Bacon::Context.module_eval do
0
   def put(uri, opts={}) request.put(uri, opts) end
0
   def delete(uri, opts={}) request.delete(uri, opts) end
0
   
0
-
0
   # Testing helpers
0
   alias_method :specify, :it
0
   

Comments

    No one has commented yet.