Skip to content

Instantly share code, notes, and snippets.

@ugisozols
Created August 2, 2010 19:08
Show Gist options
  • Save ugisozols/505143 to your computer and use it in GitHub Desktop.
Save ugisozols/505143 to your computer and use it in GitHub Desktop.
# features/refinery/manage_files
Scenario: Files Delete
Given I have no files
When I upload the file at "features/uploads/refinery_is_awesome.txt"
And I go to the list of files
And I follow "Remove this file forever"
Then I should have 0 file
# next line fails ...
# And I should see "'refinery_is_awesome.txt' was successfully destroyed."
# vendor/plugins/resources/app/views/admin/resources/_resource.html.erb
<%= link_to refinery_icon_tag('delete.png'), admin_resource_path(resource),
:class => "cancel confirm-delete",
:title => t('.delete.title'),
:'data-confirm' => t('.delete.message', :title => resource.filename),
:'data-method' => "delete" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment