Muki-SkyWalker / specs

Automatically exported from code.google.com/p/specs
Other
0 stars 0 forks source link

Initialization of the contexts of first examples in the sus fails when using NotifierRunner #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This time even a more subtle issue with the context initialization: The
context fail to initialize correctly in the first examples of the systems, if:

1) the contexts are not defined in the Specification itself
2) The spec is run with NotifierRunner
3) There is more than one system in the specification

For example in the following scenario the first example of Foo will fail:

object FooSpecs extends FooContext{
  "Foo" ->-(myContext) should{
    "be able to access context" in{
      foo mustEqual "b"
    }
  }
  "Bar" ->-(anotherContext) should{
    "be able to access context" in{
      foo mustEqual "c"
    }
  }
}
trait FooContext extends Specification{
  var foo = "a"
  val myContext = beforeContext(foo = "b")
  val anotherContext = beforeContext(foo = "c")
}

Original issue reported on code.google.com by saynomoo@gmail.com on 5 Jan 2010 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by etorrebo...@gmail.com on 7 Jan 2010 at 7:42

GoogleCodeExporter commented 9 years ago
Can you please also try this case with the latest SNAPSHOT because it's working 
for me 
now (even if I can't really explain why)?

Thanks.

Original comment by etorrebo...@gmail.com on 8 Jan 2010 at 12:51

GoogleCodeExporter commented 9 years ago
For me the issue still exists. Did you try it with NotifierRunner? With
OutputReporter the problem does not exist. I'm running the specs with scala 
2.7.7 if
that matters..

Original comment by saynomoo@gmail.com on 8 Jan 2010 at 1:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1207.

Original comment by etorrebo...@gmail.com on 11 Jan 2010 at 10:04

GoogleCodeExporter commented 9 years ago
Sorry, I messed up with my testing. That should be better now.

Original comment by etorrebo...@gmail.com on 11 Jan 2010 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by etorrebo...@gmail.com on 14 Feb 2010 at 2:43

GoogleCodeExporter commented 9 years ago

Original comment by etorrebo...@gmail.com on 31 Mar 2011 at 8:05