lib/ae/assertor.rb in ae-1.6.0 vs lib/ae/assertor.rb in ae-1.6.1
- old
+ new
@@ -84,10 +84,10 @@
#--
# TODO: Should we deprecate the receiver matches in favor of #expected ?
# In other words, should the <code>|| @delegate</code> be dropped?
#++
def expect(*args, &block)
- return self if args.empty? && !block_given? # same as #assert
+ return self if args.empty? && !block # same as #assert
target = block || args.shift
if ::Proc === target #|| target.respond_to?(:to_proc)
#block = target.to_proc