gitlab-org--gitlab-foss/spec/requests/search_spec.rb
2012-11-13 22:27:45 +11:00

17 lines
350 B
Ruby

require 'spec_helper'
describe "Search" do
before do
login_as :user
@project = create(: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