summaryrefslogtreecommitdiff
path: root/spec/serializers/move_to_project_serializer_spec.rb
blob: 841ac969eeb84ad31bebaa032f09b7f8088577fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

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