Permalink
Browse files

fix test with mocks

  • Loading branch information...
1 parent 386a150 commit a18f15ab91d9ceefda8c7007837c300ea691974f @freels freels committed Sep 8, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/scala/com/twitter/querulous/unit/MemoizingDatabaseFactorySpec.scala
View
4 src/test/scala/com/twitter/querulous/unit/MemoizingDatabaseFactorySpec.scala
@@ -18,8 +18,8 @@ class MemoizingDatabaseFactorySpec extends Specification with JMocker {
val memoizingDatabase = new MemoizingDatabaseFactory(databaseFactory)
expect {
- one(databaseFactory).apply(hosts, "bar", username, password) willReturn database1
- one(databaseFactory).apply(hosts, "baz", username, password) willReturn database2
+ one(databaseFactory).apply(hosts, "bar", username, password, null) willReturn database1
+ one(databaseFactory).apply(hosts, "baz", username, password, null) willReturn database2
}
memoizingDatabase(hosts, "bar", username, password) mustBe database1
memoizingDatabase(hosts, "bar", username, password) mustBe database1

0 comments on commit a18f15a

Please sign in to comment.