Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d740d90d41718cc4143796552bdd53322020f146 1 parent ed89dc4
@parndt parndt authored
View
2  images/features/step_definitions/image_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no images$/ do
- Image.delete_all
+ Image.destroy_all
end
When /^I attach the image at "([^\"]*)"$/ do |file_path|
View
2  resources/features/step_definitions/file_steps.rb
@@ -1,5 +1,5 @@
Given /^I have no files$/ do
- Resource.delete_all
+ Resource.destroy_all
end
When /^I attach the file at "([^\"]*)"$/ do |file_path|
Please sign in to comment.
Something went wrong with that request. Please try again.