Skip to content

Commit

Permalink
Remove random println from specs
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Dec 13, 2023
1 parent 54276b3 commit 32638db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def feature() {
def foobar = foobar()

then:
println(foobar)
consume(foobar)

cleanup:
foobar.size()
Expand All @@ -200,12 +200,16 @@ def feature() {
def (foobar, b) = foobar()

then:
println(foobar)
consume(foobar)

cleanup:
foobar.size()
}

void consume(def value) {

}

def foobar() {
return ["foo", "bar"]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Derived extends Base {
def x = 42
def setupSpec() {
println x
def foo = x
}
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Exception e = thrown(IOException)
@FailsWith(InvalidSpecException)
def "(Java-style) exception condition must specify a type that is-a java.lang.Throwable"() {
when:
println()
URI.create("localhost")

then:
String str = thrown()
Expand All @@ -227,7 +227,7 @@ Exception e = thrown(IOException)
@FailsWith(InvalidSpecException)
def "(Groovy-style) exception condition must specify a type that is-a java.lang.Throwable"() {
when:
println()
URI.create("localhost")

then:
thrown(String)
Expand Down

0 comments on commit 32638db

Please sign in to comment.