Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test fixes for 2.9.0

  • Loading branch information...
commit 41c344ba817a2fefddd39ee2060063567016a5c6 1 parent 340cf0c
@jliszka jliszka authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/test/scala/com/foursquare/rogue/QueryTest.scala
View
10 src/test/scala/com/foursquare/rogue/QueryTest.scala
@@ -647,7 +647,7 @@ class QueryTest extends SpecsMatchers {
// Can't say useIndex and then not use that field.
check("""Venue.useIndex(Venue.idIdx).where(_.legacyid eqs 4)""",
- Some("found.*EqClause.*required.*Venue#_id"))
+ Some("found.*EqClause.*required.*_id"))
// Can't use where with an IndexScan'ing operation.
check("""Venue.useIndex(Venue.idIdx).where(_._id)(_ after new DateTime())""",
Some("do not conform to method where.*com.foursquare.rogue.Indexable"))
@@ -657,22 +657,22 @@ class QueryTest extends SpecsMatchers {
// Can't skip past the first field in an index.
check("""Venue.useIndex(Venue.idIdx).rangeScan(_._id)""",
- Some("could not find implicit value for parameter ev.*com.foursquare.rogue.UsedIndex"))
+ Some("(could not find implicit value for parameter ev|Cannot prove that).*com.foursquare.rogue.UsedIndex"))
// Can't skip past the first field in an index.
check("""Venue.useIndex(Venue.mayorIdIdx).rangeScan(_.mayor).iscan(_._id)(_ eqs new ObjectId())""",
- Some("could not find implicit value for parameter ev.*com.foursquare.rogue.UsedIndex"))
+ Some("(could not find implicit value for parameter ev|Cannot prove that).*com.foursquare.rogue.UsedIndex"))
// If first column is index-scanned, other fields must be marked as iscan too.
check("""Venue.useIndex(Venue.mayorIdIdx).iscan(_.mayor)(_ lt 10).where(_._id)(_ eqs new ObjectId())""",
- Some("could not find implicit value for parameter ev.*com.foursquare.rogue.Indexable"))
+ Some("(could not find implicit value for parameter ev|Cannot prove that).*com.foursquare.rogue.Indexable"))
// Query should compile fine when the second clause is marked as iscan.
check("""Venue.useIndex(Venue.mayorIdIdx).iscan(_.mayor)(_ lt 10).iscan(_._id)(_ eqs new ObjectId())""",
None)
// If you rangeScan past a column, you must iscan all index fields after.
check("""Venue.useIndex(Venue.mayorIdClosedIdx).where(_.mayor)(_ eqs 10).rangeScan(_._id).where(_.closed)(_ eqs true)""",
- Some("could not find implicit value for parameter ev.*com.foursquare.rogue.Indexable"))
+ Some("(could not find implicit value for parameter ev|Cannot prove that).*com.foursquare.rogue.Indexable"))
// Version of the above with an iscan of later fields.
check("""Venue.useIndex(Venue.mayorIdClosedIdx).where(_.mayor)(_ eqs 10).rangeScan(_._id).iscan(_.closed)(_ eqs true)""",
None)
Please sign in to comment.
Something went wrong with that request. Please try again.