Skip to content

Commit 99bfbef

Browse files
committed
Tweaked Scaladoc in path.FreeSpec and path.FunSpec, which still extend
Suite so therefore don't need to final override withFixture anymore.
1 parent 2902eca commit 99bfbef

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scalatest/src/main/scala/org/scalatest/path/FreeSpec.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ import org.scalatest._
274274
*
275275
* <p>
276276
* The reason lexical placement is the one and only one way to share fixtures in a <code>path.FreeSpec</code> is because
277-
* all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't override
278-
* <code>withFixture</code>, because it is <code>final</code>, or mix in <code>BeforeAndAfter</code> or
277+
* all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't mix in <code>BeforeAndAfter</code> or
279278
* <code>BeforeAndAfterEach</code>, because both override <code>runTest</code>, which is <code>final</code> in
280-
* a <code>path.FreeSpec</code>. In short:
279+
* a <code>path.FreeSpec</code>. You also can't override <code>withFixture</code>, because <code>path.FreeSpec</code>
280+
* extends <a href="../Suite.html"><code>Suite</code></a> not <a href="../TestSuite.html"><code>TestSuite</code></a>,
281+
* where <code>withFixture</code> is defined. In short:
281282
* </p>
282283
*
283284
* <p>

scalatest/src/main/scala/org/scalatest/path/FunSpec.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ import org.scalatest._
274274
*
275275
* <p>
276276
* The reason lexical placement is the one and only one way to share fixtures in a <code>path.FunSpec</code> is because
277-
* all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't override
278-
* <code>withFixture</code>, because it is <code>final</code>, or mix in <code>BeforeAndAfter</code> or
277+
* all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't mix in <code>BeforeAndAfter</code> or
279278
* <code>BeforeAndAfterEach</code>, because both override <code>runTest</code>, which is <code>final</code> in
280-
* a <code>path.FunSpec</code>. In short:
279+
* a <code>path.FunSpec</code>. You also can't override <code>withFixture</code>, because <code>path.FreeSpec</code>
280+
* extends <a href="../Suite.html"><code>Suite</code></a> not <a href="../TestSuite.html"><code>TestSuite</code></a>,
281+
* where <code>withFixture</code> is defined. In short:
281282
* </p>
282283
*
283284
* <p>

0 commit comments

Comments
 (0)