gitlabhq/spec/requests/search_spec.rb
Robert Speicher 7754189187 Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00

18 lines
351 B
Ruby

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