diff options
Diffstat (limited to 'features/steps/project/source/search_code.rb')
-rw-r--r-- | features/steps/project/source/search_code.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/steps/project/source/search_code.rb b/features/steps/project/source/search_code.rb new file mode 100644 index 00000000000..9c2864cc936 --- /dev/null +++ b/features/steps/project/source/search_code.rb @@ -0,0 +1,19 @@ +class Spinach::Features::ProjectSourceSearchCode < Spinach::FeatureSteps + include SharedAuthentication + include SharedProject + include SharedPaths + + step 'I search for term "coffee"' do + fill_in "search", with: "coffee" + click_button "Go" + end + + 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" + end +end |