diff options
-rw-r--r-- | activesupport/lib/active_support/testing/performance/rubinius.rb | 2 |
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 |