c1b71e2fa1
When listing issues and merge requests on dasboard page, make sure that at least one filter is enabled. User's id is used in search autocomplete widget instead of username, which allows presetting user in filter dropdowns. Related to #43246
21 lines
537 B
Ruby
21 lines
537 B
Ruby
require 'spec_helper'
|
|
|
|
describe DashboardController do
|
|
let(:user) { create(:user) }
|
|
let(:project) { create(:project) }
|
|
|
|
before do
|
|
project.add_master(user)
|
|
sign_in(user)
|
|
end
|
|
|
|
describe 'GET issues' do
|
|
it_behaves_like 'issuables list meta-data', :issue, :issues
|
|
it_behaves_like 'issuables requiring filter', :issues
|
|
end
|
|
|
|
describe 'GET merge requests' do
|
|
it_behaves_like 'issuables list meta-data', :merge_request, :merge_requests
|
|
it_behaves_like 'issuables requiring filter', :merge_requests
|
|
end
|
|
end
|