Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #229 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] rake :make_test_dirs needs to make mocks dir

Reported by: bitsweat Assigned to: rails@bitsweat.net
Priority: normal Milestone: 0.9
Component: Railties Version: 0.8
Severity: trivial Keywords: rakefile
Cc:

Description

Index: Rakefile
===================================================================
RCS file: /var/cvs/railties/railties/Rakefile,v
retrieving revision 1.21
diff -u -r1.21 Rakefile
--- Rakefile    23 Nov 2004 01:44:04 -0000      1.21
+++ Rakefile    23 Nov 2004 04:02:45 -0000
@@ -77,6 +77,7 @@
   File.mkdir "#{PKG_DESTINATION}/test/fixtures"
   File.mkdir "#{PKG_DESTINATION}/test/unit"
   File.mkdir "#{PKG_DESTINATION}/test/functional"
+  File.mkdir "#{PKG_DESTINATION}/test/mocks"
   File.mkdir "#{PKG_DESTINATION}/test/mocks/development"
   File.mkdir "#{PKG_DESTINATION}/test/mocks/testing"
 end

Attachments

railties_rakefile_simplify.diff (11.6 kB) - added by bitsweat on 11/23/04 18:59:49.
some railties rakefile refactoring

Change History

11/23/04 18:59:04 changed by bitsweat

Also, rake includes FileUtils at toplevel so you could gsub('File.mkdir', 'mkdir_p').gsub('File.cp', 'cp') and so on. I attached another patch which does this and moves some file lists out of the tasks.

11/23/04 18:59:49 changed by bitsweat

  • attachment railties_rakefile_simplify.diff added.

some railties rakefile refactoring

11/25/04 16:28:53 changed by david

  • status changed from new to closed.
  • resolution set to fixed.