debian-mirror-gitlab/spec/serializers/move_to_project_serializer_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
348 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe MoveToProjectSerializer do
2018-11-20 20:47:30 +05:30
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