diff options
author | Javier Castro <javier.alejandro.castro@gmail.com> | 2013-04-14 14:07:11 -0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-09 11:47:08 +0300 |
commit | 7f57fe5034f6fdfbdd4e29745b50e7bfa1576bf5 (patch) | |
tree | 29586c1f9dd79b73b88e1797e26b432f9d18fd40 /features | |
parent | 4353babe61a57be128bd967731e7c536c9a55ba3 (diff) | |
download | gitlab-ce-7f57fe5034f6fdfbdd4e29745b50e7bfa1576bf5.tar.gz |
Implemented code search feature
Diffstat (limited to 'features')
-rw-r--r-- | features/project/source/search_code.feature | 9 | ||||
-rw-r--r-- | features/steps/project/project_search_code.rb | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/features/project/source/search_code.feature b/features/project/source/search_code.feature new file mode 100644 index 00000000000..f62adb5d056 --- /dev/null +++ b/features/project/source/search_code.feature @@ -0,0 +1,9 @@ +Feature: Project Search code + Background: + Given I sign in as a user + And I own project "Shop" + Given I visit project source page + + Scenario: Search for term "Welcome to Gitlab" + When I search for term "Welcome to Gitlab" + Then I should see files from repository containing "Welcome to Gitlab" diff --git a/features/steps/project/project_search_code.rb b/features/steps/project/project_search_code.rb new file mode 100644 index 00000000000..21a564d8c26 --- /dev/null +++ b/features/steps/project/project_search_code.rb @@ -0,0 +1,16 @@ +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" + 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 |