public
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack.git
Click here to lend your support to: mack and make a donation at www.pledgie.com !
Updated mack_application_generator to generate view and controller helper tests. 
[#69 state:resolved]
markbates (author)
Mon Aug 04 13:26:07 -0700 2008
commit  b9bbe9d1805bea948b5cd308af427fb32488df7c
tree    d9fcae85879993fe89eadbab3e5ca1f831351961
parent  8eaee77c5d6265d6849378131e3674f7dc105064
...
15
16
17
18
 
19
20
21
...
15
16
17
 
18
19
20
21
0
@@ -15,7 +15,7 @@ options = OpenStruct.new
0
 options.orm = "data_mapper"
0
 options.testing_framework = "rspec"
0
 options.js_framework = "jquery"
0
-options.version = "0.6.1"
0
+options.version = "0.6.1.100"
0
 
0
 opts = OptionParser.new do |opts|
0
   opts.banner = "Usage: mack <application_name> [options]"
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
0
 
0
 class <%= @name_plural_camel %>ControllerHelperTest < Test::Unit::TestCase
0
   include Mack::ControllerHelpers::<%= @name_plural_camel %>Controller
...
74
75
76
77
 
78
79
 
80
81
82
83
84
 
 
 
85
86
 
 
 
 
 
 
 
 
 
87
88
89
...
95
96
97
98
99
100
 
 
 
 
 
 
 
 
 
 
 
101
102
 
103
104
105
...
74
75
76
 
77
78
 
79
80
81
 
 
 
82
83
84
85
 
86
87
88
89
90
91
92
93
94
95
96
97
...
103
104
105
 
 
 
106
107
108
109
110
111
112
113
114
115
116
117
 
118
119
120
121
0
@@ -74,16 +74,24 @@ test_helper:
0
   type: file
0
   template_path: <%= File.join(templates_directory_path, "test", "test_helper.rb.template") %>
0
   output_path: <%= File.join(app_name, "test", "test_helper.rb") %>
0
-test_functional:
0
+test_controllers:
0
   type: directory
0
-  output_path: <%= File.join(app_name, "test", "functional") %>
0
+  output_path: <%= File.join(app_name, "test", "controllers") %>
0
 test_example:
0
   type: file
0
-  template_path: <%= File.join(templates_directory_path, "test", "functional", "default_controller_test.rb.template") %>
0
-  output_path: <%= File.join(app_name, "test", "functional", "default_controller_test.rb") %>
0
-test_unit:
0
+  template_path: <%= File.join(templates_directory_path, "test", "controllers", "default_controller_test.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "controllers", "default_controller_test.rb") %>
0
+test_models:
0
   type: directory
0
-  output_path: <%= File.join(app_name, "test", "unit") %>
0
+  output_path: <%= File.join(app_name, "test", "models") %>
0
+helper_test_example:
0
+  type: file
0
+  template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "default_controller_helper_test.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "helpers", "controllers", "default_controller_helper_test.rb") %>
0
+app_helper_test_example:
0
+  type: file
0
+  template_path: <%= File.join(templates_directory_path, "test", "helpers", "views", "application_helper_test.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "helpers", "view", "application_helper_test.rb") %>
0
 <% elsif testing_framework == "rspec" %>
0
 test_spec_helper:
0
   type: file
0
@@ -95,11 +103,19 @@ test_spec_opts:
0
   output_path: <%= File.join(app_name, "test", "spec.opts") %>
0
 test_spec_example:
0
   type: file
0
-  template_path: <%= File.join(templates_directory_path, "test", "functional", "default_controller_spec.rb.template") %>
0
-  output_path: <%= File.join(app_name, "test", "functional", "default_controller_spec.rb") %>
0
-test_spec_unit:
0
+  template_path: <%= File.join(templates_directory_path, "test", "controllers", "default_controller_spec.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "controllers", "default_controller_spec.rb") %>
0
+helper_test_spec_example:
0
+  type: file
0
+  template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "default_controller_helper_spec.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "helpers", "controllers", "default_controller_helper_spec.rb") %>
0
+app_helper_test_spec_example:
0
+  type: file
0
+  template_path: <%= File.join(templates_directory_path, "test", "helpers", "views", "application_helper_spec.rb.template") %>
0
+  output_path: <%= File.join(app_name, "test", "helpers", "view", "application_helper_spec.rb") %>
0
+test_spec_models:
0
   type: directory
0
-  output_path: <%= File.join(app_name, "test", "unit") %>
0
+  output_path: <%= File.join(app_name, "test", "models") %>
0
 <% end %>
0
 
0
 # Plugins
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
0
 
0
 class <%= @name_singular_camel %>HelperTest < Test::Unit::TestCase
0
   include Mack::ViewHelpers
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
0
 
0
 class ZooHelperTest < Test::Unit::TestCase
0
   include Mack::ViewHelpers
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
0
 
0
 class ZoosControllerHelperTest < Test::Unit::TestCase
0
   include Mack::ControllerHelpers::ZoosController

Comments