Skip to content

Commit d78b963

Browse files
committed
Use require_relative instead of require File.expand_path
1 parent a23caca commit d78b963

File tree

3,689 files changed

+6083
-6083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,689 files changed

+6083
-6083
lines changed

command_line/dash_c_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -c command line option" do
44
it "checks syntax in given file" do

command_line/dash_d_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -d command line option" do
44
before :each do

command_line/dash_e_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -e command line option" do
44
it "evaluates the given string" do

command_line/dash_r_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -r command line option" do
44
before :each do

command_line/dash_s_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -s command line option" do
44
describe "when using -- to stop parsing" do

command_line/dash_upper_c_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe 'The -C command line option' do
44
before :all do

command_line/dash_upper_i_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe "The -I command line option" do
44
before :each do

command_line/dash_upper_s_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
1+
require_relative '../spec_helper'
22

33
describe 'The -S command line option' do
44
before :each do

command_line/dash_upper_w_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
2-
require File.expand_path('../shared/verbose', __FILE__)
1+
require_relative '../spec_helper'
2+
require_relative 'shared/verbose'
33

44
describe "The -W command line option" do
55
before :each do

command_line/dash_v_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require File.expand_path('../../spec_helper', __FILE__)
2-
require File.expand_path('../shared/verbose', __FILE__)
1+
require_relative '../spec_helper'
2+
require_relative 'shared/verbose'
33

44
describe "The -v command line option" do
55
it_behaves_like :command_line_verbose, "-v"

0 commit comments

Comments
 (0)