Permalink
Browse files

Fix cuke steps

  • Loading branch information...
1 parent 0d6864a commit f360fe3854c50d4789babbb5bcda5b924851c057 @bensie bensie committed May 30, 2013
View
6 features/caching.feature
@@ -23,6 +23,6 @@ Feature: uploader with file storage
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
+ And the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
+ Then the uploader should have 'public/uploads/tmp/1369894322-345-2255/bork.txt' as its current path
View
4 features/file_storage.feature
@@ -30,8 +30,8 @@ Feature: uploader with file storage
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
Scenario: retrieving a file from cache then storing
- Given 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
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/bork.txt'
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
View
4 features/file_storage_overridden_filename.feature
@@ -31,8 +31,8 @@ Feature: uploader with file storage and overriden filename
And the file at 'public/uploads/txt.krob' should be identical to the file at 'fixtures/bork.txt'
Scenario: retrieving a file from cache then storing
- Given 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
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/txt.krob'
And the file at 'public/uploads/txt.krob' should be identical to the file at 'fixtures/bork.txt'
View
4 features/file_storage_overridden_store_dir.feature
@@ -31,8 +31,8 @@ Feature: uploader with file storage and overridden store dir
And the file at 'public/monkey/llama/bork.txt' should be identical to the file at 'fixtures/bork.txt'
Scenario: retrieving a file from cache then storing
- Given 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
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/monkey/llama/bork.txt'
And the file at 'public/monkey/llama/bork.txt' should be identical to the file at 'fixtures/bork.txt'
View
4 features/file_storage_reversing_processor.feature
@@ -36,8 +36,8 @@ Feature: uploader with file storage and a processor that reverses the file
And the file at 'public/uploads/bork.txt' should be the reverse of the file at 'fixtures/bork.txt'
Scenario: retrieving a file from cache then storing
- Given 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
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/bork.txt'
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
View
6 features/versions_basics.feature
@@ -33,9 +33,9 @@ Feature: uploader with file storage and versions
And the uploader's version 'thumb' should have the url '/uploads/thumb_bork.txt'
Scenario: retrieving a file from cache then storing
- Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
- Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_bork.txt'
- When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/bork.txt'
Then there should be a file at 'public/uploads/thumb_bork.txt'
View
10 features/versions_nested_versions.feature
@@ -43,11 +43,11 @@ Feature: uploader with nested versions
And the uploader's nested version 'micro' nested in 'thumb' should have the url '/uploads/thumb_micro_bork.txt'
Scenario: retrieving a file from cache then storing
- Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
- Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_bork.txt'
- Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_mini_bork.txt'
- Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_micro_bork.txt'
- When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_bork.txt'
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_mini_bork.txt'
+ Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_micro_bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/bork.txt'
Then there should be a file at 'public/uploads/thumb_bork.txt'
View
6 features/versions_overridden_filename.feature
@@ -34,9 +34,9 @@ Feature: uploader with file storage and overriden filename
And the uploader's version 'thumb' should have the url '/uploads/thumb_grark.png'
Scenario: retrieving a file from cache then storing
- Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
- Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_bork.txt'
- When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/grark.png'
Then there should be a file at 'public/uploads/thumb_grark.png'
View
6 features/versions_overriden_store_dir.feature
@@ -31,9 +31,9 @@ Feature: uploader with file storage and versions with overridden store dir
And the file at 'public/monkey/llama/thumb_bork.txt' should be identical to the file at 'fixtures/bork.txt'
Scenario: retrieving a file from cache then storing
- Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
- Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/thumb_bork.txt'
- When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
+ Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/bork.txt'
+ Given the file 'fixtures/monkey.txt' is cached file at 'public/uploads/tmp/1369894322-345-2255/thumb_bork.txt'
+ When I retrieve the cache name '1369894322-345-2255/bork.txt' from the cache
And I store the file
Then there should be a file at 'public/uploads/bork.txt'
Then there should be a file at 'public/monkey/llama/thumb_bork.txt'

0 comments on commit f360fe3

Please sign in to comment.