aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-30 00:00:26 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-30 00:00:26 +0100
commit391ccdaf35f41e38905a940a72e30b484cb0baf9 (patch)
treed8680901367335f650154fb8db9b6ab50369e0d8 /activesupport/lib
parenta35ba6cf5a91b0cde0a22007f8532313754d0cac (diff)
downloadrails-391ccdaf35f41e38905a940a72e30b484cb0baf9.tar.gz
rails-391ccdaf35f41e38905a940a72e30b484cb0baf9.tar.bz2
rails-391ccdaf35f41e38905a940a72e30b484cb0baf9.zip
fixed a bug where rubinius was creating the profiling files as directories
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/testing/performance/rubinius.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance/rubinius.rb b/activesupport/lib/active_support/testing/performance/rubinius.rb
index a0511f42ed..547b7cf048 100644
--- a/activesupport/lib/active_support/testing/performance/rubinius.rb
+++ b/activesupport/lib/active_support/testing/performance/rubinius.rb
@@ -50,7 +50,7 @@ module ActiveSupport
protected
def create_path_and_open_file(printer_name)
fname = "#{output_filename}_#{printer_name}.txt"
- FileUtils.mkdir_p(fname)
+ FileUtils.mkdir_p(File.dirname(fname))
File.open(fname, 'wb') do |file|
yield(file)
end