Description: Use the correct path to load resources for tests

Author: David Suárez <david.sephirot@gmail.com>
Last-Update: 2020-01-04
Forwarded: not-needed

--- a/aws-sdk-core/spec/spec_helper.rb
+++ b/aws-sdk-core/spec/spec_helper.rb
@@ -3,6 +3,10 @@
 require 'webmock/rspec'
 require 'aws-sdk-core'
 
+$CORE_LIB_ROOT = File.dirname(File.dirname(__FILE__))
+Aws::SHARE_DIR = $CORE_LIB_ROOT
+Aws::API_DIR = File.join(Aws::SHARE_DIR, 'apis')
+
 SimpleCov.command_name('test:unit:aws-sdk-core')
 
 # Prevent the SDK unit tests from loading actual credentials while under test.
--- a/aws-sdk-resources/spec/spec_helper.rb
+++ b/aws-sdk-resources/spec/spec_helper.rb
@@ -5,6 +5,10 @@
 require 'webmock/rspec'
 require 'aws-sdk-resources'
 
+$CORE_LIB_ROOT = File.join(File.dirname(__FILE__), '..', '..', 'aws-sdk-core')
+Aws::SHARE_DIR = $CORE_LIB_ROOT
+Aws::API_DIR = File.join(Aws::SHARE_DIR, 'apis')
+
 SimpleCov.command_name('test:unit:aws-sdk-resources')
 
 # Prevent the SDK unit tests from loading actual credentials while under test.
