lib/fix/on.rb in r_spec-0.3.0 vs lib/fix/on.rb in r_spec-0.3.1

- old
+ new

@@ -7,12 +7,12 @@ # @note To declare an instance variable, use the `let` helper instead. # # @param block [Proc] The block to call. # # @return [#object_id] The given block. - def before(*, &block) - block.call + def before(*) + yield end # @param another_front_object [#object_id] Override the front object. # @param specs [Proc] A set of specs. # @@ -32,10 +32,10 @@ # @param block [Proc, nil] Another subject inside a block. # # @return [#object_id] The subject. def subject(&block) if block_given? - @described = block.call + @described = yield else super end end end