Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-21 12:41:37 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-21 12:41:37 +0400
commit03f6a28ec0dab308070e83ec422f12fa289aad9f (patch)
treea2b72dd5944863f38f7c7397590626223ab0fc5a /spec/features/search_spec.rb
parent9f722427e5835e4aeb5c1dd6a9cc8720b40d87c0 (diff)
move capybara scenarios to spec/features
Diffstat (limited to 'spec/features/search_spec.rb')
-rw-r--r--spec/features/search_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb
new file mode 100644
index 00000000000..e338f359f88
--- /dev/null
+++ b/spec/features/search_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+
+describe "Search" do
+ before do
+ login_as :user
+ @project = create(:project)
+ @project.team << [@user, :reporter]
+ visit search_path
+ fill_in "search", with: @project.name[0..3]
+ click_button "Search"
+ end
+
+ it "should show project in search results" do
+ page.should have_content @project.name
+ end
+end
+