summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-08-24 17:36:16 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-08-24 17:36:16 +0800
commit5c31c72048d418d88d59abbdb117ec5413eb5f83 (patch)
tree0c5af0be5da66576357a1a17686c33aac8e5774f
parentcc2c737dea3c90d465e423e102fb634c531bdcc9 (diff)
downloadgitlab-ce-5c31c72048d418d88d59abbdb117ec5413eb5f83.tar.gz
Use block rather than just b
-rw-r--r--spec/services/projects/housekeeping_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/projects/housekeeping_service_spec.rb b/spec/services/projects/housekeeping_service_spec.rb
index 6e916a523fe..9386c110385 100644
--- a/spec/services/projects/housekeeping_service_spec.rb
+++ b/spec/services/projects/housekeeping_service_spec.rb
@@ -24,8 +24,8 @@ describe Projects::HousekeepingService do
end
it 'yields the block if given' do
- expect do |b|
- subject.execute(&b)
+ expect do |block|
+ subject.execute(&block)
end.to yield_with_no_args
end
@@ -47,8 +47,8 @@ describe Projects::HousekeepingService do
end
it 'does not yield' do
- expect do |b|
- expect { subject.execute(&b) }
+ expect do |block|
+ expect { subject.execute(&block) }
.to raise_error(Projects::HousekeepingService::LeaseTaken)
end.not_to yield_with_no_args
end