BigW Consortium Gitlab

search_spec.rb 350 Bytes
Newer Older
1 2 3 4 5
require 'spec_helper'

describe "Search" do
  before do
    login_as :user
6
    @project = create(:project)
7 8
    @project.add_access(@user, :read)
    visit search_path
9
    fill_in "search", with: @project.name[0..3]
10 11 12
    click_button "Search"
  end

13
  it "should show project in search results" do
14 15 16 17
    page.should have_content @project.name
  end
end