diff options
Diffstat (limited to 'features/steps/project/search_code.rb')
-rw-r--r-- | features/steps/project/search_code.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/features/steps/project/search_code.rb b/features/steps/project/search_code.rb index 8d130a8ed0d..affa7d3b43b 100644 --- a/features/steps/project/search_code.rb +++ b/features/steps/project/search_code.rb @@ -3,14 +3,18 @@ class ProjectSearchCode < Spinach::FeatureSteps include SharedProject include SharedPaths - When 'I search for term "coffee"' do + step 'I search for term "coffee"' do fill_in "search", with: "coffee" click_button "Go" click_link 'Repository Code' end - Then 'I should see files from repository containing "coffee"' do - page.should have_content "coffee" - page.should have_content " CONTRIBUTING.md" + step 'I should see files from repository containing "coffee"' do + page.should have_content 'coffee' + page.should have_content 'CONTRIBUTING.md' + end + + step 'I should see empty result' do + page.should have_content "We couldn't find any matching code" end end |