File: download_steps.rb

package info (click to toggle)
ruby-carrierwave 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,692 kB
  • sloc: ruby: 9,881; sh: 26; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 253 bytes parent folder | download
1
2
3
4
5
6
7
8
When /^I download the file '([^']+)'/ do |url|
  unless ENV['REMOTE'] == 'true'
    stub_request(:get, %r{/Monkey/testfile.txt}).
      to_return(body: "S3 Remote File", headers: { "Content-Type" => "text/plain" })
  end

  @uploader.download!(url)
end