From 1d8ad010781e93e41c2a96694ab6e5f3d351ebe8 Mon Sep 17 00:00:00 2001 From: "Andrew W. Lee" Date: Mon, 2 Sep 2019 16:23:30 -0700 Subject: [PATCH] Update relative path for spec_helper --- spec/lib/annotate/annotate_models_spec.rb | 4 ++-- spec/lib/annotate/annotate_routes_spec.rb | 2 +- spec/lib/annotate/parser_spec.rb | 2 +- spec/lib/annotate_spec.rb | 2 +- spec/lib/tasks/annotate_models_migrate_spec.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/lib/annotate/annotate_models_spec.rb b/spec/lib/annotate/annotate_models_spec.rb index 95a136f45..f95a9e290 100644 --- a/spec/lib/annotate/annotate_models_spec.rb +++ b/spec/lib/annotate/annotate_models_spec.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -require_relative '../spec_helper' +require_relative '../../spec_helper' require 'annotate/annotate_models' require 'annotate/active_record_patch' require 'active_support/core_ext/string' @@ -1819,7 +1819,7 @@ class User < ActiveRecord::Base end expect(error_output).to include("Unable to annotate #{@model_dir}/user.rb: oops") - expect(error_output).to include('/spec/annotate/annotate_models_spec.rb:') + expect(error_output).to include('/spec/lib/annotate/annotate_models_spec.rb:') end end diff --git a/spec/lib/annotate/annotate_routes_spec.rb b/spec/lib/annotate/annotate_routes_spec.rb index 609d67326..2d2cd4eae 100644 --- a/spec/lib/annotate/annotate_routes_spec.rb +++ b/spec/lib/annotate/annotate_routes_spec.rb @@ -1,4 +1,4 @@ -require_relative '../spec_helper' +require_relative '../../spec_helper' require 'annotate/annotate_routes' describe AnnotateRoutes do diff --git a/spec/lib/annotate/parser_spec.rb b/spec/lib/annotate/parser_spec.rb index 78cbac7bb..bd680e9c8 100644 --- a/spec/lib/annotate/parser_spec.rb +++ b/spec/lib/annotate/parser_spec.rb @@ -1,4 +1,4 @@ -require_relative '../spec_helper' +require_relative '../../spec_helper' module Annotate # rubocop:disable Metrics/ModuleLength describe Parser do # rubocop:disable Metrics/BlockLength diff --git a/spec/lib/annotate_spec.rb b/spec/lib/annotate_spec.rb index cd8ef7468..2912f2084 100644 --- a/spec/lib/annotate_spec.rb +++ b/spec/lib/annotate_spec.rb @@ -1,4 +1,4 @@ -require_relative 'spec_helper' +require_relative '../spec_helper' describe Annotate do it 'should have a version' do diff --git a/spec/lib/tasks/annotate_models_migrate_spec.rb b/spec/lib/tasks/annotate_models_migrate_spec.rb index 8c30e1c93..7172658a5 100644 --- a/spec/lib/tasks/annotate_models_migrate_spec.rb +++ b/spec/lib/tasks/annotate_models_migrate_spec.rb @@ -1,4 +1,4 @@ -require_relative '../spec_helper' +require_relative '../../spec_helper' describe 'ActiveRecord migration rake task hooks' do before do