Module: Spectro::ClassMethods
- Defined in:
- lib/spectro.rb
Instance Method Summary collapse
-
#implements(interfaces) ⇒ Object
Register the given method name supporting the given parameters.
Instance Method Details
#implements(interfaces) ⇒ Object
Register the given method name supporting the given parameters.
Whenever Spectro::Config.mocks_enabled? is true it will try to cover unfulfilled specs using the knwon rules as mocks.
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/spectro.rb', line 38 def implements interfaces file_path = caller.first.match(/#{Dir.pwd}\/(.+):\d+:in .+/)[1] interfaces.each do |method_name, required_params| |