Skip to content

Commit

Permalink
Test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorrowe committed Oct 8, 2015
1 parent 4b19878 commit e2c9684
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws-sdk-core/spec/aws/plugins/region_endpoint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ module Plugins

let(:env) {{}}

let(:metadata) {{}}
let(:metadata) {{
'endpointPrefix' => 'PREFIX',
}}

let(:client_class) {
Seahorse::Client::Base.define(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e2c9684

Please sign in to comment.