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