Use block rather than just b
This commit is contained in:
parent
cc2c737dea
commit
5c31c72048
|
@ -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
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue