🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

minitest/spec with #its

Published 2011-08-03 @ 16:59

Tagged minitest

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