# File lib/templater/spec/helpers.rb, line 10
        def matches?(actual)
          @actual = actual
          # Satisfy expectation here. Return false or raise an error if it's not met.
          found = nil
          @actual.invocations.each { |i| found = i if i.class == @expected }

          if @with
            return found && (@with == found.arguments)
          else
            return found
          end
        end