Module: NanDoc::SpecDoc::SpecInstanceMethods
- Defined in:
- lib/nandoc/spec-doc.rb
Overview
These are the methods that will be available to nandoc-enhanced tests. For now it is recommended to leave this as just the one method nandoc(), which will return the TestCaseAgent.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.include_to(mod) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/nandoc/spec-doc.rb', line 69 def include_to mod # # This used to be MiniTest::Spec-specific, now it's not, but here # for reference: # # unless mod.ancestors.include?(::MiniTest::Spec) # fail( # "Sorry, for now SpecDoc can only extend MiniTest::Spec "<< # " tests. Couldn't extend #{mod}." # ) # end mod.send(:include, self) end |
Instance Method Details
#nandoc ⇒ Object
83 84 85 |
# File 'lib/nandoc/spec-doc.rb', line 83 def nandoc @nandoc_agent ||= TestCaseAgent.new(self) end |