summaryrefslogtreecommitdiff
path: root/spec/services/branches/delete_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/branches/delete_service_spec.rb')
-rw-r--r--spec/services/branches/delete_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/branches/delete_service_spec.rb b/spec/services/branches/delete_service_spec.rb
index 291431c1723..727cadc5a50 100644
--- a/spec/services/branches/delete_service_spec.rb
+++ b/spec/services/branches/delete_service_spec.rb
@@ -41,7 +41,7 @@ RSpec.describe Branches::DeleteService do
context 'when Gitlab::Git::CommandError is raised' do
before do
allow(repository).to receive(:rm_branch) do
- raise Gitlab::Git::CommandError.new('Could not update patch')
+ raise Gitlab::Git::CommandError, 'Could not update patch'
end
end