Skip to content

Commit

Permalink
Fix test by using appropriate data type
Browse files Browse the repository at this point in the history
  • Loading branch information
hrj committed May 7, 2017
1 parent d6207bf commit 0e40ce5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ class DateConstraintTest extends FlatSpec with Matchers with BeforeAndAfterEach
val accState = stub[AccountState]
appState = new AppState(accState)

val postGroups: Seq[PostGroup] = (1 to 12).map(month => {
val postGroups: Vector[PostGroup] = (1 to 12).map(month => {
val date = new Date(2013, month, 1)
val txn = Transaction(null, date, Nil, None, None, Nil)
val postGroup = new PostGroup(Nil, txn, null, None, None, Nil)

postGroup
})
}).toVector

(accState.postGroups _).when().returns(postGroups)
}
Expand Down

0 comments on commit 0e40ce5

Please sign in to comment.