Remove lines which add some paths to $LOAD_PATH, because they already exist in $LOAD_PATH

This commit is contained in:
Yosuke Kabuto 2016-01-02 16:19:08 +09:00
parent 1715fc9945
commit b02f03a556
2 changed files with 30 additions and 4 deletions

View File

@ -19,10 +19,6 @@ GENERATED_DIR = File.expand_path(File.join(ROOT_DIR, 'generated'))
THIRD_PARTY_DIR = File.expand_path(File.join(ROOT_DIR, 'third_party'))
FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures'))
$LOAD_PATH.unshift(SPEC_DIR)
$LOAD_PATH.unshift(LIB_DIR)
$LOAD_PATH.unshift(GENERATED_DIR)
$LOAD_PATH.unshift(THIRD_PARTY_DIR)
$LOAD_PATH.uniq!

View File

@ -0,0 +1,30 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'spec_helper'
RSpec.describe $LOAD_PATH do
it('should contain SPEC_DIR') do
expect($LOAD_PATH).to include(SPEC_DIR)
end
it('should contain LIB_DIR') do
expect($LOAD_PATH).to include(LIB_DIR)
end
it('should contain GENERATED_DIR') do
expect($LOAD_PATH).to include(GENERATED_DIR)
end
it('should contain THIRD_PARTY_DIR') do
expect($LOAD_PATH).to include(THIRD_PARTY_DIR)
end
end