Skip to content

Commit

Permalink
Transform remove blob link into button.
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Oct 24, 2014
1 parent f6bed51 commit e491224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/projects/blob/_actions.html.haml
Expand Up @@ -23,5 +23,6 @@
tree_join(@commit.sha, @path)), class: 'btn btn-small'

- if allowed_tree_edit?
= link_to '#modal-remove-blob', class: "remove-blob btn btn-small btn-remove", "data-toggle" => "modal" do
= button_tag class: 'remove-blob btn btn-small btn-remove',
'data-toggle' => 'modal', 'data-target' => '#modal-remove-blob' do
Remove
2 changes: 1 addition & 1 deletion features/steps/project/source/browse_files.rb
Expand Up @@ -78,7 +78,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end

step 'I click on "Remove"' do
click_link 'Remove'
click_button 'Remove'
end

step 'I click on "Remove file"' do
Expand Down

0 comments on commit e491224

Please sign in to comment.