Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

get the *correct* dirname

  • Loading branch information...
commit 30589b22d55d4c837489c7dc943a0b10bc74ae36 1 parent 4d33708
Chuck Remes authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 benchmark/core/file/bench_read.rb
6 benchmark/core/file/bench_read.rb
... ... @@ -1,9 +1,9 @@
1 1 require 'benchmark'
2 2 require 'benchmark/ips'
3 3
4   -small_file = File.join(__FILE__, 'small.txt')
5   -medium_file = File.join(__FILE__, 'medium.txt')
6   -large_file = File.join(__FILE__, 'large.txt')
  4 +small_file = File.join(File.dirname(__FILE__), 'small.txt')
  5 +medium_file = File.join(_File.dirname(_FILE__), 'medium.txt')
  6 +large_file = File.join(_File.dirname(_FILE__), 'large.txt')
7 7
8 8 Benchmark.ips do |x|
9 9 x.report "File.read a small file" do

0 comments on commit 30589b2

Please sign in to comment.
Something went wrong with that request. Please try again.