diff --git a/features/project/snippets.feature b/features/project/snippets.feature index a26c8dc84747f3561666611bd81fb1ae5757319e..dfaa02663a03b38934f38df23df828cad3cdad94 100644 --- a/features/project/snippets.feature +++ b/features/project/snippets.feature @@ -31,5 +31,5 @@ Feature: Project Snippets Scenario: I destroy "Snippet one" Given I visit snippet page "Snippet one" And I click link "Edit" - And I click link "Destroy" + And I click link "Remove Snippet" Then I should not see "Snippet one" in snippets diff --git a/features/steps/project/project_snippets.rb b/features/steps/project/project_snippets.rb index 86c0685256a2d6fcb4660f518396a1d0e64fcfcb..5082b31198acaf249a423b0cff8e5d87204acd02 100644 --- a/features/steps/project/project_snippets.rb +++ b/features/steps/project/project_snippets.rb @@ -47,8 +47,8 @@ class ProjectSnippets < Spinach::FeatureSteps end end - And 'I click link "Destroy"' do - click_link "Destroy" + And 'I click link "Remove Snippet"' do + click_link "Remove snippet" end And 'I submit new snippet "Snippet three"' do