2014-09-22 14:30:25 +00:00
|
|
|
class Spinach::Features::ProjectSearchCode < Spinach::FeatureSteps
|
2013-04-14 17:07:11 +00:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
include SharedPaths
|
|
|
|
|
2014-07-27 22:27:15 +00:00
|
|
|
step 'I search for term "coffee"' do
|
2014-07-31 13:20:47 +00:00
|
|
|
fill_in "search", with: "coffee"
|
2013-04-14 17:07:11 +00:00
|
|
|
click_button "Go"
|
|
|
|
end
|
|
|
|
|
2014-07-27 22:27:15 +00:00
|
|
|
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
|
2014-08-27 08:55:42 +00:00
|
|
|
page.should have_content "We couldn't find any matching"
|
2013-04-14 17:07:11 +00:00
|
|
|
end
|
|
|
|
end
|