equal
deleted
inserted
replaced
104 self.out desc |
104 self.out desc |
105 self.out "Failure/Error: %s" % [ read_failed_line( exception, example).strip ] |
105 self.out "Failure/Error: %s" % [ read_failed_line( exception, example).strip ] |
106 exception.message.split("\n").each {|l| self.out l} |
106 exception.message.split("\n").each {|l| self.out l} |
107 |
107 |
108 # logic taken from the base class |
108 # logic taken from the base class |
109 example.example_group.ancestors.push(example.example_group).each do |group| |
109 if shared_group = find_shared_group(example) |
110 if group.metadata[:shared_group_name] |
110 self.out "Shared Example Group: \"#{shared_group.metadata[:shared_group_name]}\" called from " + |
111 self.out "Shared Example Group: \"#{group.metadata[:shared_group_name]}\" called from " + |
111 "#{backtrace_line(shared_group.metadata[:example_group][:location])}" |
112 "#{backtrace_line(group.metadata[:example_group][:location])}" |
|
113 break |
|
114 end |
|
115 end |
112 end |
116 end |
113 end |
117 |
114 |
118 self.out exception_source( file, line-1 ) if file && line |
115 self.out exception_source( file, line-1 ) if file && line |
119 end |
116 end |