Class: RspecGithubActionsSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_github_actions_summary.rb,
lib/rspec_github_actions_summary/output.rb,
lib/rspec_github_actions_summary/version.rb,
lib/rspec_github_actions_summary/example_group.rb,
lib/rspec_github_actions_summary/temp_file_result.rb

Defined Under Namespace

Classes: Error, ExampleGroup, Output, TempFileResult

Constant Summary collapse

VERSION =
'0.1.0'

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ RspecGithubActionsSummary

Returns a new instance of RspecGithubActionsSummary.



11
12
13
# File 'lib/rspec_github_actions_summary.rb', line 11

def initialize(output)
  @output = output
end

Instance Method Details

#dump_summary(notification) ⇒ Object



15
16
17
# File 'lib/rspec_github_actions_summary.rb', line 15

def dump_summary(notification)
  RspecGithubActionsSummary::TempFileResult.new(notification).write!
end