From e2c96843743f20401e0feae71656100e33431c92 Mon Sep 17 00:00:00 2001 From: Trevor Rowe Date: Thu, 8 Oct 2015 09:37:34 -0700 Subject: [PATCH] Test fix. --- aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb b/aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb index fbad2f5e9d5..0e6e2ecc36e 100644 --- a/aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb +++ b/aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb @@ -6,7 +6,9 @@ module Plugins let(:env) {{}} - let(:metadata) {{}} + let(:metadata) {{ + 'endpointPrefix' => 'PREFIX', + }} let(:client_class) { Seahorse::Client::Base.define( @@ -79,7 +81,6 @@ module Plugins describe 'endpoint option' do it 'defaults the endpoint to PREFIX.REGION.amazonaws.com' do - metadata['endpointPrefix'] = 'PREFIX' client = client_class.new(region: 'REGION') expect(client.config.endpoint.to_s).to eq('https://PREFIX.REGION.amazonaws.com') end