Skip to content

Commit

Permalink
Fixed failing test for DateTimeField.
Browse files Browse the repository at this point in the history
  • Loading branch information
davewhittaker committed May 26, 2012
1 parent b18d6fc commit efe3ca8
Showing 1 changed file with 18 additions and 16 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -104,22 +104,24 @@ object FieldSpec extends Specification("Record Field Specification") {
in.valueBox must_== Failure("my failure") in.valueBox must_== Failure("my failure")
} }


"which are only flagged as dirty_? when setBox is called with a different value" in { if(canCheckDefaultValues) {
in.clear "which are only flagged as dirty_? when setBox is called with a different value" in {
in match { in.clear
case owned: OwnedField[_] => owned.owner.runSafe { in match {
in.resetDirty case owned: OwnedField[_] => owned.owner.runSafe {
} in.resetDirty
case _ => in.resetDirty }
} case _ => in.resetDirty
in.dirty_? must_== false }
val valueBox = in.valueBox in.dirty_? must_== false
in.setBox(valueBox) val valueBox = in.valueBox
in.dirty_? must_== false in.setBox(valueBox)
val exampleBox = Full(example) in.dirty_? must_== false
valueBox must verify { v => ! (exampleBox === v) } val exampleBox = Full(example)
in.setBox(exampleBox) valueBox must verify { v => ! (exampleBox === v) }
in.dirty_? must_== true in.setBox(exampleBox)
in.dirty_? must_== true
}
} }
} }


Expand Down

0 comments on commit efe3ca8

Please sign in to comment.