public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/tekkub/engines.git
We shouldn't regenerate the test rails application every time.
lazyatom (author)
Sun Apr 20 06:10:27 -0700 2008
commit  9d257fb4136b87f6b1519ac7da1f68b973188f2b
tree    e8a839ab95799ce2b6639597779086f5cf6eeaa6
parent  5de251c57d14961c280d31a625cee8ce2354c4aa
...
31
32
33
 
 
34
35
36
...
152
153
154
155
 
156
157
158
...
172
173
174
175
 
 
 
 
 
176
177
178
 
179
180
181
...
31
32
33
34
35
36
37
38
...
154
155
156
 
157
158
159
160
...
174
175
176
 
177
178
179
180
181
182
183
 
184
185
186
187
0
@@ -31,6 +31,8 @@ task :cruise do
0
   end
0
 end
0
 
0
+task :clean => [:clobber_doc, "test:clean"]
0
+
0
 namespace :test do
0
   
0
   # Yields a block with STDOUT and STDERR silenced. If you *really* want
0
@@ -152,7 +154,7 @@ namespace :test do
0
   end
0
   
0
   desc 'Update the plugin and tests files in the test application from the plugin'
0
- task :mirror_engine_files => [:copy_engines_plugin] do
0
+ task :mirror_engine_files => [:test_app, :copy_engines_plugin] do
0
     puts "> Modifying default config files to load engines plugin"
0
     insert_line("require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')",
0
                 :into => 'config/environment.rb',
0
@@ -172,10 +174,14 @@ namespace :test do
0
   end
0
   
0
   desc 'Prepare the engines test environment'
0
- task :prepare => [:clean, :generate_app, :mirror_engine_files]
0
+ file :test_app do
0
+ puts "> Recreating test application"
0
+ Rake::Task["test:clean"].invoke
0
+ Rake::Task["test:generate_app"].invoke
0
+ end
0
 end
0
 
0
-task :test => "test:prepare" do
0
+task :test => "test:mirror_engine_files" do
0
   # We use exec here to replace the current running rake process
0
   exec("cd #{test_app_dir} && rake")
0
 end

Comments

    No one has commented yet.