gitlab-org--gitlab-foss/spec/features/search_spec.rb

20 lines
448 B
Ruby
Raw Normal View History

2012-05-27 06:22:23 -04:00
require 'spec_helper'
describe "Search", feature: true do
2012-05-27 06:22:23 -04:00
before do
login_as :user
@project = create(:project, namespace: @user.namespace)
2013-01-04 11:50:31 -05:00
@project.team << [@user, :reporter]
2012-05-27 06:22:23 -04:00
visit search_path
page.within '.search-holder' do
fill_in "search", with: @project.name[0..3]
click_button "Search"
end
2012-05-27 06:22:23 -04:00
end
it "should show project in search results" do
expect(page).to have_content @project.name
2012-05-27 06:22:23 -04:00
end
end