public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/svenfuchs/engines.git
Clearing up the test task console output.
lazyatom (author)
Sun Apr 20 06:17:00 -0700 2008
commit  baadff7ce80d25aa5dfbf1f29379c129bb700a89
tree    3370de7654322a007cbc16ab983a85cd2e8c841b
parent  9d257fb4136b87f6b1519ac7da1f68b973188f2b
...
84
85
86
87
 
88
89
90
 
91
92
93
94
95
96
 
97
98
99
100
 
101
102
103
104
105
 
106
107
108
...
165
166
167
168
 
169
170
171
...
182
183
184
 
185
186
187
...
84
85
86
 
87
88
89
 
90
91
92
93
94
95
 
96
97
98
99
 
100
101
102
103
104
 
105
106
107
108
...
165
166
167
 
168
169
170
171
...
182
183
184
185
186
187
188
0
@@ -84,25 +84,25 @@ namespace :test do
0
         FileUtils.mkdir_p vendor_dir
0
         
0
         if ENV['RAILS'] == 'edge'
0
- out.puts ">>> Cloning rails from GitHub"
0
+ out.puts " Cloning rails from GitHub"
0
           run "cd #{vendor_dir} && git clone --depth 1 git://github.com/rails/rails.git"
0
         elsif File.exist?(ENV['RAILS'])
0
- out.puts ">>> Linking rails from #{ENV['RAILS']}"
0
+ out.puts " Linking rails from #{ENV['RAILS']}"
0
           run "cd #{vendor_dir} && ln -s #{ENV['RAILS']} rails"
0
         else
0
           raise "Couldn't build test application from '#{ENV['RAILS']}'"
0
         end
0
         
0
- out.puts ">>> generating rails default directory structure"
0
+ out.puts " generating rails default directory structure"
0
         run "ruby #{File.join(vendor_dir, 'rails', 'railties', 'bin', 'rails')} #{test_app_dir}"
0
       else
0
         version = `rails --version`.chomp.split.last
0
- out.puts ">>> building rails using the 'rails' command (rails version: #{version})"
0
+ out.puts " building rails using the 'rails' command (rails version: #{version})"
0
         run "rails #{test_app_dir}"
0
       end
0
       
0
       # get the database config and schema in place
0
- out.puts ">>> writing database.yml"
0
+ out.puts " writing database.yml"
0
       require 'yaml'
0
       File.open(File.join(test_app_dir, 'config', 'database.yml'), 'w') do |f|
0
         f.write(%w(development test).inject({}) do |h, env|
0
@@ -165,7 +165,7 @@ namespace :test do
0
                 
0
     insert_line("require 'engines_test_helper'", :into => 'test/test_helper.rb')
0
     
0
- puts "> mirroring test application files into #{test_app_dir}"
0
+ puts "> Mirroring test application files into #{test_app_dir}"
0
     mirror_test_files('app')
0
     mirror_test_files('lib')
0
     mirror_test_files('plugins', 'vendor')
0
@@ -182,6 +182,7 @@ namespace :test do
0
 end
0
 
0
 task :test => "test:mirror_engine_files" do
0
+ puts "> Loading the test application environment and running tests"
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.