debian-mirror-gitlab/spec/requests/dashboard_controller_spec.rb

16 lines
611 B
Ruby
Raw Normal View History

2022-01-12 12:59:36 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe DashboardController, feature_category: :authentication_and_authorization do
2022-01-12 12:59:36 +05:30
context 'token authentication' do
it_behaves_like 'authenticates sessionless user for the request spec', 'issues atom', public_resource: false do
let(:url) { issues_dashboard_url(:atom, assignee_username: user.username) }
end
it_behaves_like 'authenticates sessionless user for the request spec', 'issues_calendar ics', public_resource: false do
let(:url) { issues_dashboard_url(:ics, assignee_username: user.username) }
end
end
end