Fix spinach test

This commit is contained in:
Hiroyuki Sato 2016-10-29 00:47:15 +09:00
parent b5bb98100a
commit 8d0e84bcf4
2 changed files with 5 additions and 1 deletions

View File

@ -43,4 +43,4 @@ Feature: Project Network Graph
Scenario: I should fail to look for a commit
When I look for a commit by ";"
Then page status code should be 404
Then I should see non-existent git revision error message

View File

@ -109,4 +109,8 @@ class Spinach::Features::ProjectNetworkGraph < Spinach::FeatureSteps
find('button').click
end
end
step 'I should see non-existent git revision error message' do
expect(page).to have_selector '.flash-alert', text: "Git revision ';' does not exist."
end
end