debian-mirror-gitlab/features/steps/project/source/search_code.rb

20 lines
527 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::ProjectSourceSearchCode < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
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
2015-09-11 14:41:01 +05:30
expect(page).to have_content 'coffee'
expect(page).to have_content 'CONTRIBUTING.md'
2014-09-02 18:07:02 +05:30
end
step 'I should see empty result' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "We couldn't find any"
2014-09-02 18:07:02 +05:30
end
end