Module: MiniApivore::ClassMethods

Defined in:
lib/mini_apivore.rb

Overview

—- class methods ———–

Instance Method Summary collapse

Instance Method Details

#init_swagger(swagger_path, schema = '') ⇒ Object



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

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

#runnable_methodsObject



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

def runnable_methods
  super | ['final_test']
end

#swagger_checkerObject



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

def swagger_checker;
  SWAGGER_CHECKERS[self]
end

#test(name, &block) ⇒ Object



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

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