@@ -2,19 +2,19 @@ Feature: uploader with file storage and a processor that reverses the file
2
2
In order to be awesome
3
3
As a developer using CarrierWave
4
4
I want to upload files to the filesystem
5
-
5
+
6
6
Background :
7
7
Given an uploader class that uses the 'file' storage
8
8
And an instance of that class
9
- And the class has a method called 'reverse' that reverses the contents of a file
9
+ And the class has a method called 'reverse' that reverses the contents of a file
10
10
And the class will process 'reverse'
11
-
11
+
12
12
Scenario : store a file
13
13
When I store the file 'fixtures/bork.txt'
14
14
Then there should be a file at 'public/uploads/bork.txt'
15
15
And the file at 'public/uploads/bork.txt' should not be identical to the file at 'fixtures/bork.txt'
16
16
And the file at 'public/uploads/bork.txt' should be the reverse of the file at 'fixtures/bork.txt'
17
-
17
+
18
18
Scenario : store two files in succession
19
19
When I store the file 'fixtures/bork.txt'
20
20
Then there should be a file at 'public/uploads/bork.txt'
@@ -24,7 +24,7 @@ Feature: uploader with file storage and a processor that reverses the file
24
24
Then there should be a file at 'public/uploads/monkey.txt'
25
25
And the file at 'public/uploads/monkey.txt' should not be identical to the file at 'fixtures/monkey.txt'
26
26
And the file at 'public/uploads/monkey.txt' should be the reverse of the file at 'fixtures/monkey.txt'
27
-
27
+
28
28
Scenario : cache a file and then store it
29
29
When I cache the file 'fixtures/bork.txt'
30
30
Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
@@ -34,7 +34,7 @@ Feature: uploader with file storage and a processor that reverses the file
34
34
Then there should be a file at 'public/uploads/bork.txt'
35
35
And the file at 'public/uploads/bork.txt' should not be identical to the file at 'fixtures/bork.txt'
36
36
And the file at 'public/uploads/bork.txt' should be the reverse of the file at 'fixtures/bork.txt'
37
-
37
+
38
38
Scenario : retrieving a file from cache then storing
39
39
Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
40
40
When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
0 commit comments