module MiniTestSpecRails::DSL::ClassMethods
def after(type = nil, &block)
def after(type = nil, &block) teardown { self.instance_eval(&block) } end
def before(type = nil, &block)
def before(type = nil, &block) setup { self.instance_eval(&block) } end
def described_class
def described_class begin describing_class.name.gsub(/Test$/, '').constantize rescue NameError nil end end
def describing_class
def describing_class ancestors.detect { |a| Class === a && rails_test_cases.include?(a.superclass) } end
def rails_test_cases
def rails_test_cases RAILS_TEST_CASES end
def register_rails_test_case(test_case)
def register_rails_test_case(test_case) return if RAILS_TEST_CASES.include?(test_case) RAILS_TEST_CASES.unshift(test_case) end