diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-24 17:36:16 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-24 17:36:16 +0800 |
commit | 5c31c72048d418d88d59abbdb117ec5413eb5f83 (patch) | |
tree | 0c5af0be5da66576357a1a17686c33aac8e5774f | |
parent | cc2c737dea3c90d465e423e102fb634c531bdcc9 (diff) | |
download | gitlab-ce-5c31c72048d418d88d59abbdb117ec5413eb5f83.tar.gz |
Use block rather than just b
-rw-r--r-- | spec/services/projects/housekeeping_service_spec.rb | 8 |
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 |