Skip to content

Commit

Permalink
Update relative path for spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
drwl committed Sep 2, 2019
1 parent f025b37 commit 1d8ad01
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/lib/annotate/annotate_models_spec.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/annotate/annotate_routes_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../spec_helper'
require_relative '../../spec_helper'
require 'annotate/annotate_routes'

describe AnnotateRoutes do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/annotate/parser_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/annotate_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'spec_helper'
require_relative '../spec_helper'

describe Annotate do
it 'should have a version' do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/tasks/annotate_models_migrate_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../spec_helper'
require_relative '../../spec_helper'

describe 'ActiveRecord migration rake task hooks' do
before do
Expand Down

0 comments on commit 1d8ad01

Please sign in to comment.