gitlabhq/spec/requests/search_spec.rb
Dmitriy Zaporozhets afbdbb0c95 Rspec fixes
2013-01-04 18:50:31 +02:00

18 lines
352 B
Ruby

require 'spec_helper'
describe "Search" do
before do
login_as :user
@project = create(:project)
@project.team << [@user, :reporter]
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