Welcome to mirror list, hosted at ThFree Co, Russian Federation.

move_to_project_serializer_spec.rb « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 60bcca3269f6a604bb7eca48d0cde857554063b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe MoveToProjectSerializer do
  describe '#represent' do
    it 'includes the name and name with namespace' do
      project = build(:project, id: 1)
      output = described_class.new.represent(project)

      expect(output).to include(:id, :name_with_namespace)
    end
  end
end