[Tests] added spec for search page
This commit is contained in:
parent
020caf1274
commit
baa54629a9
1 changed files with 17 additions and 0 deletions
17
spec/requests/searc_spec.rb
Normal file
17
spec/requests/searc_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe "Search" do
|
||||||
|
before do
|
||||||
|
login_as :user
|
||||||
|
@project = Factory :project
|
||||||
|
@project.add_access(@user, :read)
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue