Skip to content

Commit

Permalink
Merge pull request #46 from hanneskaeufler/hk-use-result-of
Browse files Browse the repository at this point in the history
use `result_of` to remove duplication
  • Loading branch information
sj26 committed Oct 15, 2016
2 parents 31d2027 + 7044aa7 commit 26162d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_junit_formatter/rspec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def dump_summary(duration, example_count, failure_count, pending_count)

def xml_dump_examples
examples.each do |example|
send :"xml_dump_#{example.execution_result[:status]}", example
send :"xml_dump_#{result_of(example)}", example
end
end

Expand Down

0 comments on commit 26162d6

Please sign in to comment.