spec/support/xspec.rb in mutant-0.8.16 vs spec/support/xspec.rb in mutant-0.8.17

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module XSpec class MessageReaction include Concord.new(:event_list) TERMINATE_EVENTS = IceNine.deep_freeze(%i[return exception].to_set) @@ -24,14 +26,14 @@ new(event_list) end private - def return(_, value) + def return(_event, value) value end - def exception(_, exception) + def exception(_event, exception) fail exception end def yields(observation, yields) block = observation.block or fail 'No block passed where expected'