gitlabhq/spec/requests/search_spec.rb

18 lines
350 B
Ruby
Raw Normal View History

2012-05-27 12:22:23 +02:00
require 'spec_helper'
describe "Search" do
before do
login_as :user
@project = create(:project)
2012-05-27 12:22:23 +02:00
@project.add_access(@user, :read)
visit search_path
fill_in "search", with: @project.name[0..3]
2012-05-27 12:22:23 +02:00
click_button "Search"
end
it "should show project in search results" do
2012-05-27 12:22:23 +02:00
page.should have_content @project.name
end
end