diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-04 17:15:00 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-08 19:39:59 -0300 |
commit | 167a0c7f0bd88e565f580e144b59d9eebe7e24f6 (patch) | |
tree | 2da71c2bb24661412bc7e009918956f123e0438b /spec/lib/gitlab/github_import | |
parent | 1e736fb5272b75eb363a1ef766e29d35d53babb6 (diff) | |
download | gitlab-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.rb | 8 |
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 |