summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/github_import
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-04 17:15:00 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-08 19:39:59 -0300
commit167a0c7f0bd88e565f580e144b59d9eebe7e24f6 (patch)
tree2da71c2bb24661412bc7e009918956f123e0438b /spec/lib/gitlab/github_import
parent1e736fb5272b75eb363a1ef766e29d35d53babb6 (diff)
downloadgitlab-ce-167a0c7f0bd88e565f580e144b59d9eebe7e24f6.tar.gz
Remove SHA suffix for removed branches name when importing PR from GH
Diffstat (limited to 'spec/lib/gitlab/github_import')
-rw-r--r--spec/lib/gitlab/github_import/branch_formatter_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/lib/gitlab/github_import/branch_formatter_spec.rb b/spec/lib/gitlab/github_import/branch_formatter_spec.rb
index fc9d5204148..e01a80054a3 100644
--- a/spec/lib/gitlab/github_import/branch_formatter_spec.rb
+++ b/spec/lib/gitlab/github_import/branch_formatter_spec.rb
@@ -33,17 +33,11 @@ describe Gitlab::GithubImport::BranchFormatter, lib: true do
end
describe '#name' do
- it 'returns raw ref when branch exists' do
+ it 'returns raw ref' do
branch = described_class.new(project, double(raw))
expect(branch.name).to eq 'feature'
end
-
- it 'returns formatted ref when branch does not exist' do
- branch = described_class.new(project, double(raw.merge(ref: 'removed-branch', sha: '2e5d3239642f9161dcbbc4b70a211a68e5e45e2b')))
-
- expect(branch.name).to eq 'removed-branch-2e5d3239'
- end
end
describe '#repo' do