Browse files

Cucumber now cleans up files and images and destroys them rather than…

… just a SQL delete which allows hooks to run (like the ones that clear out the uploaded files).
  • Loading branch information...
1 parent ed89dc4 commit d740d90d41718cc4143796552bdd53322020f146 @parndt parndt committed Apr 6, 2011
2 images/features/step_definitions/image_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no images$/ do
- Image.delete_all
+ Image.destroy_all
When /^I attach the image at "([^\"]*)"$/ do |file_path|
2 resources/features/step_definitions/file_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no files$/ do
- Resource.delete_all
+ Resource.destroy_all
When /^I attach the file at "([^\"]*)"$/ do |file_path|

0 comments on commit d740d90

Please sign in to comment.