gitlab-org--gitlab-foss/features/steps/project/search_code.rb

18 lines
518 B
Ruby
Raw Normal View History

2013-04-14 17:07:11 +00:00
class ProjectSearchCode < Spinach::FeatureSteps
include SharedAuthentication
include SharedProject
include SharedPaths
2013-05-19 09:13:39 +00:00
When 'I search for term "Welcome to GitLab"' do
fill_in "search", with: "Welcome to GitLab"
2013-04-14 17:07:11 +00:00
click_button "Go"
click_link 'Repository Code'
2013-04-14 17:07:11 +00:00
end
2013-05-19 09:13:39 +00:00
Then 'I should see files from repository containing "Welcome to GitLab"' do
page.should have_content "Welcome to GitLab"
2013-04-14 17:07:11 +00:00
page.should have_content "GitLab is a free project and repository management application"
end
end