summaryrefslogtreecommitdiff
path: root/spec/controllers/dashboard_controller_spec.rb
blob: 566d85151982a19d55df311ee0f6dc5d5bf84eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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