Class: RSpec::Hermetic::Evaluation
- Inherits:
-
Object
- Object
- RSpec::Hermetic::Evaluation
- Defined in:
- lib/rspec/hermetic/evaluation.rb,
sig/rspec/hermetic.rbs
Defined Under Namespace
Classes: Example
Instance Method Summary collapse
-
#initialize(output_path: "tmp/rspec_hermetic_evaluation.json") ⇒ Evaluation
constructor
A new instance of Evaluation.
- #run ⇒ Hash[String, untyped]
Constructor Details
#initialize(output_path: "tmp/rspec_hermetic_evaluation.json") ⇒ Evaluation
Returns a new instance of Evaluation.
30 31 32 |
# File 'lib/rspec/hermetic/evaluation.rb', line 30 def initialize(output_path: "tmp/rspec_hermetic_evaluation.json") @output_path = output_path end |
Instance Method Details
#run ⇒ Hash[String, untyped]
34 35 36 37 38 39 40 41 |
# File 'lib/rspec/hermetic/evaluation.rb', line 34 def run report = { "seeded_pollution" => seeded_pollution_results, "generated_at" => Time.now.utc.iso8601 } write(report) report end |