2018-07-30 11:45:49 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe MoveToProjectSerializer do
|
2018-07-30 11:45:49 -04:00
|
|
|
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
|