debian-mirror-gitlab/spec/lib/gitlab/github_import/label_formatter_spec.rb
2016-06-02 11:05:42 +05:30

19 lines
450 B
Ruby

require 'spec_helper'
describe Gitlab::GithubImport::LabelFormatter, lib: true do
describe '#attributes' do
it 'returns formatted attributes' do
project = create(:project)
raw = double(name: 'improvements', color: 'e6e6e6')
formatter = described_class.new(project, raw)
expect(formatter.attributes).to eq({
project: project,
title: 'improvements',
color: '#e6e6e6'
})
end
end
end