2017-01-23 20:40:25 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe DashboardController do
|
|
|
|
let(:user) { create(:user) }
|
2017-08-02 19:55:11 +00:00
|
|
|
let(:project) { create(:project) }
|
2017-01-23 20:40:25 +00:00
|
|
|
|
|
|
|
before do
|
2018-07-11 14:36:08 +00:00
|
|
|
project.add_maintainer(user)
|
2017-01-23 20:40:25 +00:00
|
|
|
sign_in(user)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET issues' do
|
|
|
|
it_behaves_like 'issuables list meta-data', :issue, :issues
|
2018-03-23 14:27:15 +00:00
|
|
|
it_behaves_like 'issuables requiring filter', :issues
|
2017-01-23 20:40:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET merge requests' do
|
|
|
|
it_behaves_like 'issuables list meta-data', :merge_request, :merge_requests
|
2018-03-23 14:27:15 +00:00
|
|
|
it_behaves_like 'issuables requiring filter', :merge_requests
|
2017-01-23 20:40:25 +00:00
|
|
|
end
|
|
|
|
end
|