spec/lib/ldp/response_spec.rb in ldp-0.7.1 vs spec/lib/ldp/response_spec.rb in ldp-0.7.2

- old
+ new

@@ -200,13 +200,15 @@ before do allow(mock_response).to receive(:headers).and_return( { 'Content-Disposition' => 'filename="xyz.txt";' }, { 'Content-Disposition' => 'attachment; filename=xyz.txt' }, { 'Content-Disposition' => 'attachment; filename="xyz.txt"; size="12345"' }, + { 'Content-Disposition' => 'attachment; filename=""; size="12345"' }, ) end it 'provides the filename from the content disposition header' do 3.times { expect(subject.content_disposition_filename).to eq 'xyz.txt' } + expect(subject.content_disposition_filename).to eq '' end end end