Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/phabricator_import/representation/task_spec.rb')
-rw-r--r--spec/lib/gitlab/phabricator_import/representation/task_spec.rb49
1 files changed, 0 insertions, 49 deletions
diff --git a/spec/lib/gitlab/phabricator_import/representation/task_spec.rb b/spec/lib/gitlab/phabricator_import/representation/task_spec.rb
deleted file mode 100644
index 2b8570e4aff..00000000000
--- a/spec/lib/gitlab/phabricator_import/representation/task_spec.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-# frozen_string_literal: true
-
-require 'fast_spec_helper'
-
-RSpec.describe Gitlab::PhabricatorImport::Representation::Task do
- subject(:task) do
- described_class.new(
- {
- 'phid' => 'the-phid',
- 'fields' => {
- 'name' => 'Title'.ljust(257, '.'), # A string padded to 257 chars
- 'authorPHID' => 'a phid',
- 'ownerPHID' => 'another user phid',
- 'description' => {
- 'raw' => '# This is markdown\n it can contain more text.'
- },
- 'dateCreated' => '1518688921',
- 'dateClosed' => '1518789995'
- }
- }
- )
- end
-
- describe '#issue_attributes' do
- it 'contains the expected values' do
- expected_attributes = {
- title: 'Title'.ljust(255, '.'),
- description: '# This is markdown\n it can contain more text.',
- state: :closed,
- created_at: Time.at(1518688921),
- closed_at: Time.at(1518789995)
- }
-
- expect(task.issue_attributes).to eq(expected_attributes)
- end
- end
-
- describe '#author_phid' do
- it 'returns the correct field' do
- expect(task.author_phid).to eq('a phid')
- end
- end
-
- describe '#owner_phid' do
- it 'returns the correct field' do
- expect(task.owner_phid).to eq('another user phid')
- end
- end
-end