Skip to content

Commit

Permalink
fix the FixtureX examples
Browse files Browse the repository at this point in the history
git-svn-id: http://scalatest.googlecode.com/svn/trunk@2812 fd1274fd-080f-5963-8033-43ee40fcd1de
  • Loading branch information
bill@artima.com committed Jun 1, 2011
1 parent d2f16ac commit efaeda6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/FeatureSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -797,13 +797,13 @@ import Suite.anErrorThatShouldCauseAnAbort
*
* feature("Fixtures can be shared") {
*
* scenario("user learns how to share fixtures")(writer: FileWriter) {
* scenario("user learns how to share fixtures") { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* scenario("user enjoys writing tests with shared fixtures")(writer: FileWriter) {
* scenario("user enjoys writing tests with shared fixtures") { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/FlatSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -828,13 +828,13 @@ import Suite.anErrorThatShouldCauseAnAbort
* }
* }
*
* "ScalaTest" should "be easy" in(writer: FileWriter) {
* "ScalaTest" should "be easy" in { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* it should "be fun" in(writer: FileWriter) {
* it should "be fun" in { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/FreeSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -867,13 +867,13 @@ import Suite.anErrorThatShouldCauseAnAbort
*
* "ScalaTest" - {
*
* "should be easy" in(writer: FileWriter) {
* "should be easy" in { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* "should be fun" in(writer: FileWriter) {
* "should be fun" in { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/FunSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -573,13 +573,13 @@ import Suite.checkRunTestParamsForNull
* }
* }
*
* test("easy")(writer: FileWriter) {
* test("easy") { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* test("fun")(writer: FileWriter) {
* test("fun") { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/Spec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,13 @@ import Suite.reportTestIgnored
*
* describe("ScalaTest") {
*
* it("should be easy")(writer: FileWriter) {
* it("should be easy") { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* it("should be fun")(writer: FileWriter) {
* it("should be fun") { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/scalatest/WordSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1004,13 +1004,13 @@ import Suite.anErrorThatShouldCauseAnAbort
*
* "ScalaTest" should {
*
* "be easy" in(writer: FileWriter) {
* "be easy" in { writer =>
* writer.write("Hello, test!")
* writer.flush()
* assert(new File(tmpFile).length === 12)
* }
*
* "be fun" in(writer: FileWriter) {
* "be fun" in { writer =>
* writer.write("Hi, test!")
* writer.flush()
* assert(new File(tmpFile).length === 9)
Expand Down

0 comments on commit efaeda6

Please sign in to comment.