File: download.feature

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 (20 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Feature: downloading files
  In order to allow users to upload remote files
  As a developer using CarrierWave
  I want to download files to the filesystem via HTTP

  Background:
    Given an uploader class that uses the 'file' storage
    And an instance of that class

  Scenario: download a file
    When I download the file 'http://s3.amazonaws.com/Monkey/testfile.txt'
    Then there should be a file called 'testfile.txt' somewhere in a subdirectory of 'public/uploads/tmp'
    And the file called 'testfile.txt' in a subdirectory of 'public/uploads/tmp' should contain 'S3 Remote File'

  Scenario: downloading a file then storing
    When I download the file 'http://s3.amazonaws.com/Monkey/testfile.txt'
    And I store the file
    Then there should be a file at 'public/uploads/testfile.txt'
    And the file at 'public/uploads/testfile.txt' should contain 'S3 Remote File'