Skip to content

Commit

Permalink
Cucumber now cleans up files and images and destroys them rather than…
Browse files Browse the repository at this point in the history
… just a SQL delete which allows hooks to run (like the ones that clear out the uploaded files).
  • Loading branch information
parndt committed Apr 6, 2011
1 parent ed89dc4 commit d740d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/features/step_definitions/image_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no images$/ do Given /^I have no images$/ do
Image.delete_all Image.destroy_all
end end


When /^I attach the image at "([^\"]*)"$/ do |file_path| When /^I attach the image at "([^\"]*)"$/ do |file_path|
Expand Down
2 changes: 1 addition & 1 deletion resources/features/step_definitions/file_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no files$/ do Given /^I have no files$/ do
Resource.delete_all Resource.destroy_all
end end


When /^I attach the file at "([^\"]*)"$/ do |file_path| When /^I attach the file at "([^\"]*)"$/ do |file_path|
Expand Down

0 comments on commit d740d90

Please sign in to comment.