Update for rspec 2.12.
--- 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