Cosmetic: nicer indentations for multiline strings

This commit is contained in:
Frederic Merizen 2018-04-24 13:35:36 +02:00 committed by gregoirenovel
parent 8c5bc0b0a5
commit 47e06812b1

View file

@ -6,7 +6,8 @@ describe 'CellarAdapter' do
describe 'parse_bucket_listing' do
let(:response) do
'<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<<~EOS
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>example-bucket</Name>
<Prefix></Prefix>
<KeyCount>2</KeyCount>
@ -28,6 +29,7 @@ describe 'CellarAdapter' do
<StorageClass>STANDARD</StorageClass>
</Contents>
</ListBucketResult>'
EOS
end
subject { session.send(:parse_bucket_listing, response) }
@ -37,16 +39,17 @@ describe 'CellarAdapter' do
describe 'bulk_deletion_request_body' do
let(:expected_response) do
'<?xml version="1.0" encoding="UTF-8"?>
<Delete>
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<Delete>
<Object>
<Key>chapi</Key>
</Object>
<Object>
<Key>chapo</Key>
</Object>
</Delete>
'
</Delete>
EOS
end
subject { session.send(:bulk_deletion_request_body, ['chapi', 'chapo']) }