Commit a5933099 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix remove snippet test

parent b6adabb4
...@@ -31,5 +31,5 @@ Feature: Project Snippets ...@@ -31,5 +31,5 @@ Feature: Project Snippets
Scenario: I destroy "Snippet one" Scenario: I destroy "Snippet one"
Given I visit snippet page "Snippet one" Given I visit snippet page "Snippet one"
And I click link "Edit" 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 Then I should not see "Snippet one" in snippets
...@@ -47,8 +47,8 @@ class ProjectSnippets < Spinach::FeatureSteps ...@@ -47,8 +47,8 @@ class ProjectSnippets < Spinach::FeatureSteps
end end
end end
And 'I click link "Destroy"' do And 'I click link "Remove Snippet"' do
click_link "Destroy" click_link "Remove snippet"
end end
And 'I submit new snippet "Snippet three"' do And 'I submit new snippet "Snippet three"' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment