public
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack.git
Search Repo:
Click here to lend your support to: mack and make a donation at www.pledgie.com !
working on the great file rework.
markbates (author)
Fri May 09 11:19:55 -0700 2008
commit  8785a32ba01de7ae12396b2f19dd6a7a5bb233ef
tree    1e87ad71cddd9df845ab82ead73d74709198ccdd
parent  8d2566325a92112360766fe1b28576fc3023e8fd
...
16
17
18
 
19
20
21
...
31
32
33
34
 
35
36
37
...
16
17
18
19
20
21
22
...
32
33
34
 
35
36
37
38
0
@@ -16,6 +16,7 @@
0
 require 'erubis'
0
 require 'erb'
0
 require 'genosaurus'
0
+require 'net/http'
0
 
0
 require File.join(File.dirname(__FILE__), "initialization", "configuration.rb")
0
 
0
@@ -31,7 +32,7 @@
0
   fl = File.join(File.dirname(__FILE__))
0
 
0
   # Require all the necessary files to make Mack actually work!
0
- ["distributed", "errors", "core_extensions", "utils", "test_extensions", "routing", "rendering", "sea_level", "tasks", "initialization/server", "generators"].each do |dir|
0
+ ["distributed", "errors", "core_extensions", "utils", "test_extensions", "routing", "rendering", "controller", "tasks", "initialization/server", "generators"].each do |dir|
0
     dir_globs = Dir.glob(File.join(fl, dir, "**/*.rb"))
0
     dir_globs.each do |d|
0
       require d
...
41
42
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
45
46
47
48
49
 
 
 
 
 
 
50
51
52
...
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
0
@@ -41,12 +41,39 @@
0
 
0
 class Test::Unit::TestCase
0
   
0
+ class MockCookieJar
0
+ def all
0
+ {}
0
+ end
0
+ end
0
+
0
+ class MockSession
0
+ def id
0
+ 1
0
+ end
0
+ end
0
+
0
+ class MockRequest
0
+ def env
0
+ {}
0
+ end
0
+ def session
0
+ MockSession.new
0
+ end
0
+ end
0
+
0
   class MockController
0
     def params(key)
0
       @params[key.to_sym]
0
     end
0
     def initialize(options = {})
0
       @params = {:format => "html"}.merge(options)
0
+ end
0
+ def cookies
0
+ MockCookieJar.new
0
+ end
0
+ def request
0
+ MockRequest.new
0
     end
0
   end
0
   

Comments

    No one has commented yet.