Permalink
Browse files

Add another test

  • Loading branch information...
1 parent 0d50b97 commit e59d25232badfd58807d7df8e9c6f7a7476057e9 Holden Karau committed Jul 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/test/scala/com/foursquare/slashem/ElasticQueryTest.scala
@@ -174,6 +174,11 @@ class ElasticQueryTest extends SpecsMatchers with ScalaCheckMatchers {
Assert.assertEquals(1,r.response.results.length)
}
@Test
+ def testNonEmptyMultiFieldSearchWithFieldValues {
+ val r = ESimplePanda.where(_.default contains "onlyinnamefield").queryField(_.name,0.1).queryField(_.hobos,0.2) fetch()
+ Assert.assertEquals(1,r.response.results.length)
+ }
+ @Test
def testNonEmptySearchOidScorePare {
val r = ESimplePanda where (_.hobos contains "hobos") fetch()
Assert.assertEquals(1,r.response.results.length)

0 comments on commit e59d252

Please sign in to comment.