From 391ccdaf35f41e38905a940a72e30b484cb0baf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Wed, 30 Mar 2011 00:00:26 +0100 Subject: fixed a bug where rubinius was creating the profiling files as directories --- activesupport/lib/active_support/testing/performance/rubinius.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/testing') 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 -- cgit v1.2.3