Skip to content

Commit

Permalink
Fixed test:uncommitted on Windows (backslash issue) (closes #4999) [p…
Browse files Browse the repository at this point in the history
…aul@paulbutcher.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Oct 9, 2006
1 parent 0d8b805 commit ccd32ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Fixed test:uncommitted on Windows (backslash issue) #4999 [paul@paulbutcher.com]

* Fixed migration creation to work with namespaced models, so script/generate model Gallery::Image will use create_table :gallery_images #6327 [BobSilva]

* Fixed rename_table on SQLite tables with indexes defined #5942 [brandon@opensoul.org]
Expand Down
4 changes: 2 additions & 2 deletions railties/lib/tasks/testing.rake
Expand Up @@ -67,8 +67,8 @@ namespace :test do
def t.file_list
changed_since_checkin = silence_stderr { `svn status` }.map { |path| path.chomp[7 .. -1] }

models = changed_since_checkin.select { |path| path =~ /app\/models\/.*\.rb/ }
controllers = changed_since_checkin.select { |path| path =~ /app\/controllers\/.*\.rb/ }
models = changed_since_checkin.select { |path| path =~ /app[\\\/]models[\\\/].*\.rb/ }
controllers = changed_since_checkin.select { |path| path =~ /app[\\\/]controllers[\\\/].*\.rb/ }

unit_tests = models.map { |model| "test/unit/#{File.basename(model, '.rb')}_test.rb" }
functional_tests = controllers.map { |controller| "test/functional/#{File.basename(controller, '.rb')}_test.rb" }
Expand Down

0 comments on commit ccd32ad

Please sign in to comment.