2017-01-23 15:40:25 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe DashboardController do
|
|
|
|
let(:user) { create(:user) }
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project) }
|
2017-01-23 15:40:25 -05:00
|
|
|
|
|
|
|
before do
|
2017-12-22 03:18:28 -05:00
|
|
|
project.add_master(user)
|
2017-01-23 15:40:25 -05:00
|
|
|
sign_in(user)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET issues' do
|
|
|
|
it_behaves_like 'issuables list meta-data', :issue, :issues
|
2018-03-23 10:27:15 -04:00
|
|
|
it_behaves_like 'issuables requiring filter', :issues
|
2017-01-23 15:40:25 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET merge requests' do
|
|
|
|
it_behaves_like 'issuables list meta-data', :merge_request, :merge_requests
|
2018-03-23 10:27:15 -04:00
|
|
|
it_behaves_like 'issuables requiring filter', :merge_requests
|
2017-01-23 15:40:25 -05:00
|
|
|
end
|
|
|
|
end
|