lib/shared_should.rb in shared_should-0.6.1 vs lib/shared_should.rb in shared_should-0.6.2
- old
+ new
@@ -333,10 +333,10 @@
end
def initialization_block
blocks = initialization_blocks
return Proc.new do
- blocks.collect {|block| block.bind(self).call}.last
+ blocks.collect {|block| block.bind(self).call if block}.last
end
end
private