Fix remove snippet test

This commit is contained in:
Dmitriy Zaporozhets 2013-09-25 21:33:35 +03:00
parent b6adabb45d
commit a59330998e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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