Commit baa54629a9e393e339dc0f5f7c95ffe761206923

Authored by randx
1 parent 020caf12

[Tests] added spec for search page

Showing 1 changed file with 17 additions and 0 deletions   Show diff stats
spec/requests/searc_spec.rb 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "Search" do
  4 + before do
  5 + login_as :user
  6 + @project = Factory :project
  7 + @project.add_access(@user, :read)
  8 + visit search_path
  9 + fill_in "search", :with => @project.name[0..3]
  10 + click_button "Search"
  11 + end
  12 +
  13 + it "should show project in search results" do
  14 + page.should have_content @project.name
  15 + end
  16 +end
  17 +
... ...