diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-28 12:54:48 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 15:43:11 +0100 |
commit | 661a103922279f05ad5027d0dfabc8a0ff649e92 (patch) | |
tree | e8ec9ce0731aa2b10cd3cedddfd440702d75aa77 /spec/integration | |
parent | 257c62c69d43549c4e4ae56d32598f3b10733931 (diff) |
Add message index to attachment files
So that files attached to different messages with the same name and
url_part don't get overwritten.
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/download_request_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/integration/download_request_spec.rb b/spec/integration/download_request_spec.rb index 84dda9a1b..2af98c271 100644 --- a/spec/integration/download_request_spec.rb +++ b/spec/integration/download_request_spec.rb @@ -155,15 +155,15 @@ describe 'when making a zipfile available' do inspect_zip_download(request_owner, info_request) do |zip| zip.count.should == 3 # the message plus two "hello-world.txt" files - zip.read('2_hello world.txt').should match('Second hello') - zip.read('3_hello world.txt').should match('First hello') + zip.read('2_2_hello world.txt').should match('Second hello') + zip.read('2_3_hello world.txt').should match('First hello') end sleep_and_receive_mail('incoming-request-attachment-unknown-extension.email', info_request) inspect_zip_download(request_owner, info_request) do |zip| zip.count.should == 4 # the message plus two "hello-world.txt" files, and the new attachment - zip.read('2_hello.qwglhm').should match('This is an unusual') + zip.read('3_2_hello.qwglhm').should match('This is an unusual') end end |