public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/tekkub/engines.git
The test application schema was vestigial (we don't test those models 
anymore), so can safely be removed.
lazyatom (author)
Sun Apr 20 05:23:35 -0700 2008
commit  a725cbeeaa91bfc1d83d68fdd654cd6ed13f6ebc
tree    80faaaa080d098569d89812b9f7d54ef86dc4795
parent  acd8b498a11fb32fb862abf3194745b969c86938
...
103
104
105
106
107
108
109
 
 
 
110
111
112
113
114
115
116
117
118
...
182
183
184
185
 
 
186
...
103
104
105
 
 
 
 
106
107
108
109
 
 
 
 
 
110
111
112
...
176
177
178
 
179
180
181
0
@@ -103,16 +103,10 @@ namespace :test do
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({
0
- "development" => {"adapter" => "sqlite3", "database" => "engines_development.sqlite3"},
0
- "test" => {"adapter" => "sqlite3", "database" => "engines_test.sqlite3"}
0
- }.to_yaml)
0
+ f.write(%w(development test).inject({}) do |h, env|
0
+ h[env] = {"adapter" => "sqlite3", "database" => "engines_#{env}.sqlite3"} ; h
0
+ end.to_yaml)
0
       end
0
-
0
- out.puts ">>> copying schema.rb"
0
- FileUtils.cp(File.join(File.dirname(__FILE__), *%w[test schema.rb]),
0
- File.join(test_app_dir, 'db'))
0
-
0
     end
0
   end
0
   
0
@@ -182,5 +176,6 @@ namespace :test do
0
 end
0
 
0
 task :test => "test:prepare" do
0
- exec("cd #{test_app_dir} && rake db:schema:load && rake")
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.