Module: MiniApivore::ClassMethods

Defined in:
lib/mini_apivore.rb

Overview

—- class methods ———–

Instance Method Summary collapse

Instance Method Details

#init_swagger(swagger_path) ⇒ Object



37
38
39
# File 'lib/mini_apivore.rb', line 37

def init_swagger( swagger_path )
  SWAGGER_CHECKERS[self] ||= MiniApivore::SwaggerChecker.instance_for(swagger_path)
end

#runnable_methodsObject



41
42
43
# File 'lib/mini_apivore.rb', line 41

def runnable_methods
  super | ['final_test']
end

#swagger_checkerObject



49
50
51
# File 'lib/mini_apivore.rb', line 49

def swagger_checker;
  SWAGGER_CHECKERS[self]
end

#test(name, &block) ⇒ Object



45
46
47
# File 'lib/mini_apivore.rb', line 45

def test(name, &block )
  super( name, &block ).tap{ |sym| MiniApivore.runnable_list << "#{to_s}::#{sym}" }
end