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:
authorStan Hu <stanhu@gmail.com>2018-07-19 15:36:31 +0300
committerStan Hu <stanhu@gmail.com>2018-07-19 15:36:31 +0300
commit2b9ec17e040863eb37255fa89f03fabdcd113cce (patch)
treefea4028f2f07e4e242854aa0d923e2c98ab679c1 /spec/lib/gitlab/bitbucket_server_import
parent9b584a59e30cdea874e2bcac673db264e3882bf8 (diff)
Fix Rubocop offenses
Diffstat (limited to 'spec/lib/gitlab/bitbucket_server_import')
-rw-r--r--spec/lib/gitlab/bitbucket_server_import/importer_spec.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb b/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
index c521f3a23b0..5c9767bcfec 100644
--- a/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
+++ b/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
@@ -237,14 +237,14 @@ describe Gitlab::BitbucketServerImport::Importer do
it '#restore_branches' do
expect(subject).to receive(:restore_branches).and_call_original
expect(subject).to receive(:delete_temp_branches)
- expect(subject.client).to receive(:create_branch).with(
- project_key, repo_slug,
- temp_branch_from,
- '12345678')
- expect(subject.client).to receive(:create_branch).with(
- project_key, repo_slug,
- temp_branch_to,
- '98765432')
+ expect(subject.client).to receive(:create_branch)
+ .with(project_key, repo_slug,
+ temp_branch_from,
+ '12345678')
+ expect(subject.client).to receive(:create_branch)
+ .with(project_key, repo_slug,
+ temp_branch_to,
+ '98765432')
expect { subject.execute }.to change { MergeRequest.count }.by(1)
end
@@ -252,14 +252,14 @@ describe Gitlab::BitbucketServerImport::Importer do
it '#delete_temp_branches' do
expect(subject.client).to receive(:create_branch).twice
expect(subject).to receive(:delete_temp_branches).and_call_original
- expect(subject.client).to receive(:delete_branch).with(
- project_key, repo_slug,
- temp_branch_from,
- '12345678')
- expect(subject.client).to receive(:delete_branch).with(
- project_key, repo_slug,
- temp_branch_to,
- '98765432')
+ expect(subject.client).to receive(:delete_branch)
+ .with(project_key, repo_slug,
+ temp_branch_from,
+ '12345678')
+ expect(subject.client).to receive(:delete_branch)
+ .with(project_key, repo_slug,
+ temp_branch_to,
+ '98765432')
expect(project.repository).to receive(:delete_branch).with(temp_branch_from)
expect(project.repository).to receive(:delete_branch).with(temp_branch_to)