Skip to content

Commit 4a5f1f0

Browse files
committed
Use require_relative for spec_helper
1 parent a906081 commit 4a5f1f0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/annotate/annotate_models_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
2-
require File.dirname(__FILE__) + '/../spec_helper.rb'
2+
require_relative '../spec_helper'
33
require 'annotate/annotate_models'
44
require 'annotate/active_record_patch'
55
require 'active_support/core_ext/string'

spec/annotate/annotate_routes_spec.rb

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

44
describe AnnotateRoutes do

spec/annotate/parser_spec.rb

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

33
module Annotate # rubocop:disable Metrics/ModuleLength
44
describe Parser do # rubocop:disable Metrics/BlockLength

spec/annotate_spec.rb

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

33
describe Annotate do
44
it 'should have a version' do

0 commit comments

Comments
 (0)