From 7b999a1ec040ff6311ba454b37a2f18f65777389 Mon Sep 17 00:00:00 2001 From: Brent Dearth Date: Thu, 30 Apr 2015 11:29:12 -0400 Subject: [PATCH] fix(example_group): fix RSpec3 deprecation error when determining example file path --- lib/rspec_junit_formatter/rspec3.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/rspec_junit_formatter/rspec3.rb b/lib/rspec_junit_formatter/rspec3.rb index 48fa65e..b90c7ce 100644 --- a/lib/rspec_junit_formatter/rspec3.rb +++ b/lib/rspec_junit_formatter/rspec3.rb @@ -44,11 +44,7 @@ def result_of(notification) end def example_group_file_path_for(notification) - meta = notification.example.metadata - while meta[:example_group] - meta = meta[:example_group] - end - meta[:file_path] + notification.example.example_group.file_path end def classname_for(notification)