# HG changeset patch # User Mahlon E. Smith # Date 1357146857 28800 # Node ID 2b198f0a86fe788de47c7454b89e03f8ec4300f3 # Parent 595320486f6999e07b720b4c32af1dc7344b280b Update for rspec 2.12. diff -r 595320486f69 -r 2b198f0a86fe specky/ruby/specky_formatter.rb --- a/specky/ruby/specky_formatter.rb Wed Sep 12 10:45:25 2012 -0700 +++ b/specky/ruby/specky_formatter.rb Wed Jan 02 09:14:17 2013 -0800 @@ -106,12 +106,9 @@ exception.message.split("\n").each {|l| self.out l} # logic taken from the base class - example.example_group.ancestors.push(example.example_group).each do |group| - if group.metadata[:shared_group_name] - self.out "Shared Example Group: \"#{group.metadata[:shared_group_name]}\" called from " + - "#{backtrace_line(group.metadata[:example_group][:location])}" - break - end + if shared_group = find_shared_group(example) + self.out "Shared Example Group: \"#{shared_group.metadata[:shared_group_name]}\" called from " + + "#{backtrace_line(shared_group.metadata[:example_group][:location])}" end end