1 2 3 4 5 6 7 8 9
class MiniTest::Spec attr_accessor :subject def self.its msg, &block it msg.to_s do subject.send(msg).instance_eval &block end end end