BartlomiejSkwira
7/29/2013 - 12:52 PM

File upload/download

File upload/download

within "#employee_file_type_#{@file_type_1.id}" do
  attach_file "employee_files[#{@file_type_1.id}][]", "#{Rails.root}/spec/fixtures/files/amberbit.png"
end

#download
click_link 'Download'
page.response_headers['Content-Type'].should eq "application/pdf"