Michael Granger avatar Michael Granger committed 6f5928e

Fix shared-group formatting for RSpec 2.12.2.

Comments (0)

Files changed (1)


 %        exception.message.split("\n").each do |line|
         <%= h line %><br />
 %        end
-%        example.example_group.ancestors.push(example.example_group).each do |group|
-%          if group.metadata[:shared_group_name]
+%        if group = find_shared_group( example )
             Shared Example Group: "<%= h group.metadata[:shared_group_name] %>" called from 
                         "<%= backtrace_line(group.metadata[:example_group][:location]) %>
-%            break
-%          end
 %        end
-    		</code>
-		</div>
+        </code>
+    </div>
 	<div class="backtrace"><p><code>
 %     format_backtrace(exception.backtrace, example).each do |backtrace_info|
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.