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)