module Maxitest::LetAll
def self.included(base)
def self.included(base) base.extend(self) end
def let_all(name, &block)
def let_all(name, &block) cache = [] define_method(name) do if cache.empty? cache << instance_eval(&block) end cache.first end end