Skip to content

Commit

Permalink
Remove some extra unused properties from the RSpec custom formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Jun 3, 2019
1 parent 51df5a1 commit 168a042
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions custom_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ def example_pending(notification)

private

# block
# description_args
# description
# full_description
# described_class
# file_path
# line_number
# location
# absolute_file_path
# rerun_file_path
# scoped_id
# type
# execution_result
# example_group
# shared_group_inclusion_backtrace
# last_run_status

# Properties of example:
# block
# description_args
# description
# full_description
# described_class
# file_path
# line_number
# location
# absolute_file_path
# rerun_file_path
# scoped_id
# type
# execution_result
# example_group
# shared_group_inclusion_backtrace
# last_run_status
def format_example(example)
{
id: example.id,
Expand All @@ -105,9 +105,7 @@ def format_example(example)
status: example.execution_result.status.to_s,
file_path: example.metadata[:file_path],
line_number: example.metadata[:line_number],
example_group_description_args: example.metadata[:example_group][:description_args].map(&:to_s),
type: example.metadata[:type],
description_args: example.metadata[:description_args],
pending_message: example.execution_result.pending_message
}
end
Expand Down

0 comments on commit 168a042

Please sign in to comment.