Commit baa54629a9e393e339dc0f5f7c95ffe761206923
1 parent
020caf12
Exists in
master
and in
4 other branches
[Tests] added spec for search page
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -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 | + | ... | ... |