summaryrefslogtreecommitdiff
path: root/spec/features/search_spec.rb
diff options
context:
space:
mode:
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
+