Permalink
Browse files

fixed a bug where rubinius was creating the profiling files as direct…

…ories
  • Loading branch information...
goncalossilva committed Mar 29, 2011
1 parent a35ba6c commit 391ccdaf35f41e38905a940a72e30b484cb0baf9
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/testing/performance/rubinius.rb
@@ -50,7 +50,7 @@ def record
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

0 comments on commit 391ccda

Please sign in to comment.