gitlabhq/spec/features/search_spec.rb
2013-02-21 13:28:05 +02:00

21 lines
396 B
Ruby

require 'spec_helper'
describe "Search" do
before do
login_as :user
@project = create(:project)
@project.team << [@user, :reporter]
visit search_path
within '.search-holder' do
fill_in "search", with: @project.name[0..3]
click_button "Search"
end
end
it "should show project in search results" do
page.should have_content @project.name
end
end