Sha256: 9bbd54a484d7d9370b9dd9640d93a894b01a0aa016a5e7c433875de59d3c2b3a

Contents?: true

Size: 1.65 KB

Versions: 27

Compression:

Stored size: 1.65 KB

Contents

Feature: uploader with file storage
  In order to be able to temporarily store files to disk
  As a developer using CarrierWave
  I want to cache files
  
  Scenario: cache a file
    Given an uploader class that uses the 'file' storage
    And an instance of that class
    When I cache the file 'fixtures/bork.txt'
    Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
    And the file called 'bork.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/bork.txt'
  
  Scenario: cache two files in succession
    Given an uploader class that uses the 'file' storage
    And an instance of that class
    When I cache the file 'fixtures/bork.txt'
    Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
    And the file called 'bork.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/bork.txt'
    When I cache the file 'fixtures/monkey.txt'
    Then there should be a file called 'monkey.txt' somewhere in a subdirectory of 'public/uploads/tmp'
    And the file called 'monkey.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/monkey.txt'
  
  Scenario: retrieving a file from cache
    Given an uploader class that uses the 'file' storage
    And an instance of that class
    And the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
    When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
    Then the uploader should have 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt' as its current path

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
durran-carrierwave-0.3.2.3 features/caching.feature
jnicklas-carrierwave-0.3.3 features/caching.feature
thorsson_carrierwave-0.4.12 features/caching.feature
thorsson_carrierwave-0.4.11 features/caching.feature
thorsson_carrierwave-0.4.10 features/caching.feature
thorsson_carrierwave-0.4.9 features/caching.feature
thorsson_carrierwave-0.4.8 features/caching.feature
thorsson_carrierwave-0.4.6 features/caching.feature
thorsson_carrierwave-0.4.5 features/caching.feature
samlown-carrierwave-0.4.5 features/caching.feature
dsturnbull-carrierwave-0.4.9 features/caching.feature
dsturnbull-carrierwave-0.4.8 features/caching.feature
dsturnbull-carrierwave-0.4.7 features/caching.feature
carrierwave-0.4.5 features/caching.feature
dsturnbull-carrierwave-0.4.6 features/caching.feature
dsturnbull-carrierwave-0.4.5 features/caching.feature
carrierwave-0.4.4 features/caching.feature
durran-carrierwave-0.4.3 features/caching.feature
carrierwave-0.4.3 features/caching.feature
carrierwave-0.4.2 features/caching.feature