require 'class_attribute' module ActionTexter module Provider module TestMessage class Delivery include ClassAttribute cattr_accessor :deliveries self.deliveries = [] def initialize(config = {}) end def deliver(message) self.class.deliveries << message deliveries end def truncate self.class.deliveries = [] end end end end end