Navigation Menu

Skip to content

Commit

Permalink
fix test definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
barkhorn committed Dec 28, 2019
1 parent 94f7e89 commit 4991e1a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -86,8 +86,8 @@ class ReallySimpleExampleTest extends AnyFunSuite with MockFactory {
val mockFormatter = mock[Formatter]

inAnyOrder {
(mockFormatter.format _).when("Mr Bond").returns("Ah, Mr Bond. I've been expecting you")
(mockFormatter.format _).when("Natsu").returns("Not now Natsu!").atLeastTwice()
(mockFormatter.format _).expects("Mr Bond").returns("Ah, Mr Bond. I've been expecting you")
(mockFormatter.format _).expects("Natsu").returns("Not now Natsu!").atLeastTwice()
}

Greetings.sayHello("Natsu", mockFormatter)
Expand Down

0 comments on commit 4991e1a

Please sign in to comment.