Commit 5c31c720 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use block rather than just b

parent cc2c737d
...@@ -24,8 +24,8 @@ describe Projects::HousekeepingService do ...@@ -24,8 +24,8 @@ describe Projects::HousekeepingService do
end end
it 'yields the block if given' do it 'yields the block if given' do
expect do |b| expect do |block|
subject.execute(&b) subject.execute(&block)
end.to yield_with_no_args end.to yield_with_no_args
end end
...@@ -47,8 +47,8 @@ describe Projects::HousekeepingService do ...@@ -47,8 +47,8 @@ describe Projects::HousekeepingService do
end end
it 'does not yield' do it 'does not yield' do
expect do |b| expect do |block|
expect { subject.execute(&b) } expect { subject.execute(&block) }
.to raise_error(Projects::HousekeepingService::LeaseTaken) .to raise_error(Projects::HousekeepingService::LeaseTaken)
end.not_to yield_with_no_args end.not_to yield_with_no_args
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment