diff options
author | James Lopez <james@jameslopez.es> | 2017-11-07 15:40:13 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-11-07 15:40:13 +0100 |
commit | 9a0acc98aafaa315317b799c6a2a0a2fe5ded52e (patch) | |
tree | 407e5b21bce006868d4de186d9e0f8b386e4e8d6 /spec/lib | |
parent | c93dab478f37dec6934bc61fb1a3d68a00fa8509 (diff) | |
download | gitlab-ce-9a0acc98aafaa315317b799c6a2a0a2fe5ded52e.tar.gz |
fix specsfix/import-export-arguments
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/import_export/merge_request_parser_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/import_export/merge_request_parser_spec.rb b/spec/lib/gitlab/import_export/merge_request_parser_spec.rb index db357f3995c..b793636c4d6 100644 --- a/spec/lib/gitlab/import_export/merge_request_parser_spec.rb +++ b/spec/lib/gitlab/import_export/merge_request_parser_spec.rb @@ -31,9 +31,9 @@ describe Gitlab::ImportExport::MergeRequestParser do end it 'parses a MR that has no source branch' do - allow_any_instance_of(Gitlab::ImportExport::MergeRequestParser).to receive(:branch_exists?).and_call_original - allow_any_instance_of(Gitlab::ImportExport::MergeRequestParser).to receive(:branch_exists?).with(merge_request.source_branch).and_return(false) - allow_any_instance_of(Gitlab::ImportExport::MergeRequestParser).to receive(:fork_merge_request?).and_return(true) + allow_any_instance_of(described_class).to receive(:branch_exists?).and_call_original + allow_any_instance_of(described_class).to receive(:branch_exists?).with(merge_request.source_branch).and_return(false) + allow_any_instance_of(described_class).to receive(:fork_merge_request?).and_return(true) allow(Gitlab::GitalyClient).to receive(:migrate).and_call_original allow(Gitlab::GitalyClient).to receive(:migrate).with(:fetch_ref).and_return([nil, 0]) |