Class: Minitest::Hyper::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/hyper/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reporter) ⇒ Report

Returns a new instance of Report.



9
10
11
# File 'lib/minitest/hyper/report.rb', line 9

def initialize(reporter)
  @reporter = reporter
end

Instance Attribute Details

#reporterObject (readonly)

Returns the value of attribute reporter.



7
8
9
# File 'lib/minitest/hyper/report.rb', line 7

def reporter
  @reporter
end

Instance Method Details

#urlObject



13
14
15
# File 'lib/minitest/hyper/report.rb', line 13

def url
  "file://#{ REPORT_FILE.gsub(/\\/, "/") }"
end

#writeObject



17
18
19
20
21
# File 'lib/minitest/hyper/report.rb', line 17

def write
  ensure_output_dir
  move_existing_file
  write_file
end