Permalink
Browse files

Use File.expand_path for 1.9's sake

  • Loading branch information...
1 parent 9a6a967 commit 02f3520428573c57c4049feab8af96d0aed2ae02 @mjackson mjackson committed Mar 1, 2012
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe "#{'*' * 80}\nRegression Specs:" do
it "/abcd/ => 'abcd'" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe Regexp do
describe "#gen" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe Randexp::Parser do
describe ".parse" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path('../../../spec_helper', __FILE__)
describe Randexp::Reducer do
describe ".reduce" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe Randexp do
describe "#initialize" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.expand_path('../../spec_helper', __FILE__)
describe Randgen do
describe ".bool" do

0 comments on commit 02f3520

Please sign in to comment.