Skip to content

Commit 1d8ad01

Browse files
committed
Update relative path for spec_helper
1 parent f025b37 commit 1d8ad01

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

spec/lib/annotate/annotate_models_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
2-
require_relative '../spec_helper'
2+
require_relative '../../spec_helper'
33
require 'annotate/annotate_models'
44
require 'annotate/active_record_patch'
55
require 'active_support/core_ext/string'
@@ -1819,7 +1819,7 @@ class User < ActiveRecord::Base
18191819
end
18201820

18211821
expect(error_output).to include("Unable to annotate #{@model_dir}/user.rb: oops")
1822-
expect(error_output).to include('/spec/annotate/annotate_models_spec.rb:')
1822+
expect(error_output).to include('/spec/lib/annotate/annotate_models_spec.rb:')
18231823
end
18241824
end
18251825

spec/lib/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_relative '../spec_helper'
1+
require_relative '../../spec_helper'
22
require 'annotate/annotate_routes'
33

44
describe AnnotateRoutes do

spec/lib/annotate/parser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative '../spec_helper'
1+
require_relative '../../spec_helper'
22

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

spec/lib/annotate_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative 'spec_helper'
1+
require_relative '../spec_helper'
22

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

spec/lib/tasks/annotate_models_migrate_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative '../spec_helper'
1+
require_relative '../../spec_helper'
22

33
describe 'ActiveRecord migration rake task hooks' do
44
before do

0 commit comments

Comments
 (0)