GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Tests for updated ResponseProxy and related changes.
dyoder (author)
Sun Apr 20 23:18:27 -0700 2008
commit  3f66706d232922ae526f5707066b22ec75501a5e
tree    4be4c0c7cad1b6fcb3f9f647c63ce43049adf85c
parent  21dc0b9f7fe8460aa63450efef91cc698f71fc68
...
83
84
85
86
87
88
89
90
91
92
93
 
 
94
95
96
...
83
84
85
 
 
 
 
 
 
 
 
86
87
88
89
90
0
@@ -83,14 +83,8 @@ task( :setup ) do
0
   system(cmd = "chmod +x bin/waves*")
0
 end
0
 
0
-desc "Run test suite"
0
-task :verify do
0
- Dir['verify/**/*.rb'].each do |spec|
0
- puts `bacon #{spec}`
0
- end
0
-end
0
-
0
-Rake::TestTask.new(:test) do |t|
0
+desc "Run verification suite."
0
+Rake::TestTask.new(:verify) do |t|
0
   t.test_files = FileList["verify/*/*.rb"].exclude("**/helpers.rb", "**/app_generation/*.rb")
0
   t.verbose = true
0
 end
...
5
6
7
8
9
 
10
11
12
13
14
15
16
 
 
 
 
17
18
19
...
5
6
7
 
 
8
9
 
 
 
 
 
 
10
11
12
13
14
15
16
0
@@ -5,15 +5,12 @@ module Waves
0
       def self.included( app )
0
         
0
         app.module_eval do
0
-
0
- extend Autocreate
0
+
0
           [ :Configurations, :Models, :Views, :Controllers, :Helpers ].each do | name |
0
- autocreate( name, Module.new ) do
0
- # dynamically access module constants
0
- def self.[]( cname )
0
- eval("#{name}::#{cname.to_s.camel_case}")
0
- end
0
- end
0
+ mod = Module.new do
0
+ def self.[](cname) eval("#{name}::#{cname.to_s.camel_case}") end
0
+ end
0
+ self.const_set( name, mod )
0
           end
0
 
0
           self::Configurations.module_eval do

Comments

    No one has commented yet.