Module: RSpec::RfcHelper
- Defined in:
- lib/rspec/rfc_helper.rb,
lib/rspec/rfc_helper/spec.rb,
lib/rspec/rfc_helper/specs.rb,
lib/rspec/rfc_helper/json_renderer.rb,
lib/rspec/rfc_helper/markdown_renderer.rb
Overview
RSpec module to track specifications with more context
Defined Under Namespace
Classes: Error, JsonRenderer, MarkdownRenderer, Spec, Specs
Class Method Summary collapse
-
.add_example(example) ⇒ Object
Delegation when using the module as a starting point.
- .save_json_report(file) ⇒ Object
- .save_markdown_report(file) ⇒ Object
-
.start_from_file(file) ⇒ Object
Delegation when using the module as a starting point.
Class Method Details
.add_example(example) ⇒ Object
Delegation when using the module as a starting point
14 15 16 17 18 |
# File 'lib/rspec/rfc_helper.rb', line 14 def self.add_example(example) raise 'Did you start?' unless @specs @specs.add_example(example) end |
.save_json_report(file) ⇒ Object
34 35 36 37 38 |
# File 'lib/rspec/rfc_helper.rb', line 34 def self.save_json_report(file) raise 'Did you start?' unless @specs @specs.save_json_report file end |
.save_markdown_report(file) ⇒ Object
28 29 30 31 32 |
# File 'lib/rspec/rfc_helper.rb', line 28 def self.save_markdown_report(file) raise 'Did you start?' unless @specs @specs.save_markdown_report file end |
.start_from_file(file) ⇒ Object
Delegation when using the module as a starting point
22 23 24 25 26 |
# File 'lib/rspec/rfc_helper.rb', line 22 def self.start_from_file(file) raise 'Already started' if @specs @specs = Specs.new_from_file file end |