debian-mirror-gitlab/spec/features/search_spec.rb

20 lines
448 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
require 'spec_helper'
describe "Search", feature: true do
before do
login_as :user
@project = create(:project, namespace: @user.namespace)
@project.team << [@user, :reporter]
visit search_path
2015-09-11 14:41:01 +05:30
page.within '.search-holder' do
2014-09-02 18:07:02 +05:30
fill_in "search", with: @project.name[0..3]
click_button "Search"
end
end
it "should show project in search results" do
2015-04-26 12:48:37 +05:30
expect(page).to have_content @project.name
2014-09-02 18:07:02 +05:30
end
end