Fix remove snippet test
This commit is contained in:
parent
b6adabb45d
commit
a59330998e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue