debian-mirror-gitlab/spec/serializers/move_to_project_serializer_spec.rb
2020-08-09 17:44:08 +05:30

14 lines
348 B
Ruby

# 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