class Rspec::Axlsx::FormatterRSpec3

class Formatter < ::RSpec::Core::Formatters::BaseFormatter

Public Class Methods

new(*) click to toggle source
# File lib/rspec/axlsx/formatter_rspec3.rb, line 13
def initialize(*)
  @example_groups = []
  @core = Rspec::Axlsx::Formatter::Core.new
end

Public Instance Methods

example_failed(notification) click to toggle source
# File lib/rspec/axlsx/formatter_rspec3.rb, line 26
def example_failed(notification)
  @example_groups.push(notification.example)
end
example_group_started(notification) click to toggle source
# File lib/rspec/axlsx/formatter_rspec3.rb, line 18
def example_group_started(notification)
  @example_groups.push(notification.group)
end
example_passed(notification) click to toggle source
# File lib/rspec/axlsx/formatter_rspec3.rb, line 22
def example_passed(notification)
  @example_groups.push(notification.example)
end
stop(notification) click to toggle source
# File lib/rspec/axlsx/formatter_rspec3.rb, line 30
def stop(notification)
  @core.to_sheet(@example_groups)
end