describe 'CellarAdapter' do
let(:session) { Cellar::CellarAdapter::Session.new(nil, nil) }
before { Timecop.freeze(Time.gm(2016, 10, 2)) }
after { Timecop.return }
describe 'parse_bucket_listing' do
let(:response) do
'example-bucket21000/falsesample1.jpg2011-02-26T01:56:20.000Z"bf1d737a4d46a19f3bced6905cc8b902"142863STANDARDsample2.jpg2011-02-26T01:56:20.000Z"bf1d737a4d46a19f3bced6905cc8b902"142863STANDARD'
end
subject { session.send(:parse_bucket_listing, response) }
it { is_expected.to eq(["sample1.jpg", "sample2.jpg"]) }
end
describe 'bulk_deletion_request_body' do
let(:expected_response) do
'
'
end
subject { session.send(:bulk_deletion_request_body, ['chapi', 'chapo']) }
it { is_expected.to eq(expected_response) }
end
end