module Sequent::Core::Helpers::MessageMatchers::ExceptOpt
Private Instance Methods
Source
# File lib/sequent/core/helpers/message_matchers/except_opt.rb, line 17 def except opts.try(:[], :except) end
Source
# File lib/sequent/core/helpers/message_matchers/except_opt.rb, line 10 def excluded?(message) [except] .flatten .compact .any? { |x| message.is_a?(x) } end