20 lines
420 B
Ruby
20 lines
420 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe DashboardController do
|
||
|
let(:user) { create(:user) }
|
||
|
let(:project) { create(:project) }
|
||
|
|
||
|
before do
|
||
|
project.team << [user, :master]
|
||
|
sign_in(user)
|
||
|
end
|
||
|
|
||
|
describe 'GET issues' do
|
||
|
it_behaves_like 'issuables list meta-data', :issue, :issues
|
||
|
end
|
||
|
|
||
|
describe 'GET merge requests' do
|
||
|
it_behaves_like 'issuables list meta-data', :merge_request, :merge_requests
|
||
|
end
|
||
|
end
|