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
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
......
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