Permalink
Browse files

Added location event for `ScopeClosed` event

  • Loading branch information...
1 parent af1e7f0 commit 7af6e776bc29862a55449d02cc8f03d50113089e @rlegendi committed Jun 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/scala/org/scalatest/specs2/notifiers/ScalaTestNotifier.scala
@@ -132,7 +132,7 @@ class ScalaTestNotifier(val spec: SpecificationStructure, val args: Arguments,
val formatter = Suite.getIndentedTextForInfo(name, indentLevel, false, false)
reporter(ScopeClosed(tracker.nextOrdinal, name, NameInfo(name, suiteClassNameFor(spec), Some(name)),
- None, None, Some(MotionToSuppress)))
+ None, None, Some(MotionToSuppress), loc(location)))
indentLevel -= 1
}
@@ -165,6 +165,7 @@ class ScalaTestNotifier(val spec: SpecificationStructure, val args: Arguments,
if (debug) {
println(">>> contextEnd: " + text + "@" + location)
}
+
scopeClosed(text, location);
}

0 comments on commit 7af6e77

Please sign in to comment.