diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-22 10:32:24 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 12:42:19 +0100 |
commit | 64139935c8de9c08d3c68e9ef9810af5af8a2131 (patch) | |
tree | c6979b0d844bc595896bf8f8b33c5ed8c44827e2 /spec/integration/download_request_spec.rb | |
parent | 28afa5f085b17ba74f009aeb8a78520a32f0e47b (diff) |
Make external request download spec more specific.
Diffstat (limited to 'spec/integration/download_request_spec.rb')
-rw-r--r-- | spec/integration/download_request_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/integration/download_request_spec.rb b/spec/integration/download_request_spec.rb index 33e90d435..62e38c607 100644 --- a/spec/integration/download_request_spec.rb +++ b/spec/integration/download_request_spec.rb @@ -85,10 +85,11 @@ describe 'when making a zipfile available' do end - it 'should successfully make a zipfile for an external request' do - info_request = info_requests(:external_request) - get_via_redirect "request/#{info_request.url_title}/download" - response.should be_success + it 'should successfully make a zipfile for an external request', :focus => true do + external_request = FactoryGirl.create(:external_request) + user = login(FactoryGirl.create(:user)) + inspect_zip_download(user, external_request){ |zip| zip.count.should == 1 } + end end end |