Commit 4f37462f authored by Matija Čupić's avatar Matija Čupić

Add DashboardOperationsProjectEntity spec

parent 94b8f283
# frozen_string_literal: true
require 'spec_helper'
describe DashboardOperationsProjectEntity do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:resource) { Dashboard::Operations::ListService::DashboardProject.new(project, nil, 0, nil) }
let(:request) { double('request', current_user: user) }
subject { described_class.new(resource, request: request).as_json }
it 'has all required fields' do
expect(subject).to include(:remove_path, :alert_count)
expect(subject.first).to include(:id)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment